CN112231723A - Encryption and decryption method for digital picture - Google Patents

Encryption and decryption method for digital picture Download PDF

Info

Publication number
CN112231723A
CN112231723A CN202011079627.2A CN202011079627A CN112231723A CN 112231723 A CN112231723 A CN 112231723A CN 202011079627 A CN202011079627 A CN 202011079627A CN 112231723 A CN112231723 A CN 112231723A
Authority
CN
China
Prior art keywords
password
digital pictures
digital
preset
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011079627.2A
Other languages
Chinese (zh)
Inventor
刘超
赵小容
李晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Wanxiang Technology Co ltd
Original Assignee
Hunan Wanxiang Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Wanxiang Technology Co ltd filed Critical Hunan Wanxiang Technology Co ltd
Priority to CN202011079627.2A priority Critical patent/CN112231723A/en
Publication of CN112231723A publication Critical patent/CN112231723A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/32Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
    • H04N1/32101Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
    • H04N1/32144Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title embedded in the image data, i.e. enclosed or integrated in the image, e.g. watermark, super-imposed logo or stamp
    • H04N1/32149Methods relating to embedding, encoding, decoding, detection or retrieval operations
    • H04N1/32267Methods relating to embedding, encoding, decoding, detection or retrieval operations combined with processing of the image
    • H04N1/32272Encryption or ciphering

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses an encryption and decryption method of a digital picture, which comprises the following steps: s1, clicking different digital pictures on the interface with preset passwords by a user, uploading the digital pictures to a server, converting the digital pictures into binary groups, storing the binary groups in a database, and displaying that the passwords are successfully set and automatically jumping to a decryption interface by a foreground; s2, the system provides digital pictures for users, the users click the digital pictures corresponding to the preset passwords, the digital pictures are converted into binary number groups and filled into the password input boxes of the digital pictures for decoding; the user clicks a fixed number of digital pictures, the operation is compared with the preset digital picture password array for judgment, if the password input of the digital pictures is wrong, the foreground displays that the decryption is failed and automatically jumps to the password input interface, and the user can click the digital pictures again after 1 minute interval, and no blank space is allowed to appear in the passwords, so that the user can record the passwords of the digital pictures greatly.

Description

Encryption and decryption method for digital picture
Technical Field
The invention relates to the technical field of encryption and decryption, in particular to an encryption and decryption method for a digital picture.
Background
As is well known, with the rapid development of network and computer technologies, the encryption technology is the main security measure adopted in electronic commerce, and is the most common security measure, symmetric encryption is represented by a data encryption standard algorithm, asymmetric encryption is generally represented by an RSA algorithm, symmetric encryption adopts a symmetric cipher coding technology, i.e., an encryption key can also be used as a decryption key, the symmetric encryption algorithm is simple and quick to use, the key is short, and is difficult to decrypt, if a user sets a complex password, the user can forget or wrongly remember the password, so that decryption cannot be performed, and if the password is set to be simple, after the password is observed by other users, other users can easily crack the password, so that encrypted files or file information is leaked.
The invention is disclosed in China: CN105447375A discloses a method for decrypting a picture and an electronic device, which when in use, preset an encryption password, number a password box, when decrypting a file, scramble the number in the decryption box, and the user needs to fill the set password picture in the decryption box with the correct number to decrypt successfully, thereby increasing the difficulty of decrypting the password. Meanwhile, if other people try to decrypt continuously, the random picture in the alternative picture is changed, and the password sequence observed by other people is disturbed, so that people cannot crack the password, however, the following problems still exist:
when a user cracks a digital picture password, if the digital picture password is input wrongly, the digital picture password cannot be directly input again, the number of the digital picture passwords is different, and spaces are allowed in the digital picture password, so that errors are easily generated when the user sets and inputs the password, the password is set wrongly or the password is recorded wrongly, and the phenomenon that the password cannot be cracked is caused.
Disclosure of Invention
Technical problem to be solved
Aiming at the defects of the prior art, the invention provides an encryption and decryption method of a digital picture.
(II) technical scheme
In order to achieve the purpose, the invention provides the following technical scheme: an encryption and decryption method for digital pictures comprises the following steps:
s1, clicking different digital pictures on the interface with preset passwords by a user, uploading the digital pictures to a server, converting the digital pictures into binary groups, storing the binary groups in a database, and displaying that the passwords are successfully set and automatically jumping to a decryption interface by a foreground;
s2, the system provides digital pictures for users, the users click the digital pictures corresponding to the preset passwords, the digital pictures are converted into binary number groups and filled into the password input boxes of the digital pictures for decoding;
s3, comparing and judging the digital picture password array in the received input frame with the preset digital picture password array by the database, displaying that decryption fails and automatically jumping to a password input interface by a foreground, clicking the digital picture again by a user, and converting the array to be input into the input frame for judgment;
s4, comparing the binary digit group in the password input box with the digit picture digit group preset in the database, and displaying the success of decryption when the input digit picture password is consistent with the preset digit picture password.
Preferably, in S1, the digital pictures provided to the user when the password is preset are arranged in order, and in S2, the order in which the digital pictures are provided when the user inputs the password is in a random order.
Preferably, in S2, the digital picture provided is a digital picture of numbers 1-9, and the digital picture sizes of numbers 1-9 are randomly different sizes.
Preferably, in S1, a preset error prompt is displayed when a space or character appears in the password preset box, and in S2, a space or character appears when a space or character is input into the password input box.
Preferably, in S1, the password preset box may set the number of 5 digital pictures, and in S2, the number of 5 digital pictures that can be filled in the password input box.
Preferably, the password is only allowed to be input once per digital picture during inputting and presetting, and after one click, the digital picture becomes grey and cannot be clicked again.
Preferably, in S2, the order in which the passwords are input must match the order in which they were preset.
Preferably, in S3, the password is filled in for judgment, and after the password filling fails, the password is filled again at a time interval of 1 minute.
(III) advantageous effects
Compared with the prior art, the invention provides an encryption and decryption method of a digital picture, which has the following beneficial effects:
when a user clicks a fixed number of digital pictures, the method compares the digital picture password array with the preset digital picture password array to judge operation, if the digital picture password input is wrong, the foreground displays that decryption fails and automatically jumps to a password input interface, the user can click the digital picture provided by the system again after waiting for 1 minute, file leakage caused by repeated decryption of the digital picture password by other users is avoided, and if a blank space or a character appears in the digital picture password, the system automatically prompts wrong information, so that the user can set and record the digital picture password greatly.
Drawings
FIG. 1 is a schematic flow chart of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Examples
Referring to fig. 1, the present invention provides a technical solution: an encryption and decryption method for digital pictures comprises the following steps:
s1, clicking different digital pictures on the interface with preset passwords by a user, uploading the digital pictures to a server, converting the digital pictures into binary groups, storing the binary groups in a database, and displaying that the passwords are successfully set and automatically jumping to a decryption interface by a foreground;
s2, the system provides digital pictures for users, the users click the digital pictures corresponding to the preset passwords, the digital pictures are converted into binary number groups and filled into the password input boxes of the digital pictures for decoding;
s3, comparing and judging the digital picture password array in the received input frame with the preset digital picture password array by the database, displaying that decryption fails and automatically jumping to a password input interface by a foreground, clicking the digital picture again by a user, and converting the array to be input into the input frame for judgment;
s4, comparing the binary digit group in the password input box with the digit picture digit group preset in the database, and displaying the success of decryption when the input digit picture password is consistent with the preset digit picture password.
Further: in S1, the digital pictures provided to the user when the password is preset are arranged in order, and in S2, the order in which the digital pictures are provided is a random shuffle order when the user inputs the password; when presetting the password, the digital picture that provides is arranged in order, thereby make things convenient for the staff to set up the password, the phenomenon that the digital picture can't accurately set up in disorder when setting up the password can not appear, greatly increased the accuracy when the user sets up the password, the user is when deciphering the interface and inputing the digital picture password, arrange in disorder to the digital picture order that provides, the user is through finding the digital picture that needs in the digital picture of the order of disordering and filling in and carry out the decoding operation in the digital picture password input frame, greatly increased user's privacy when inputing the digital picture password, prevent that other users from observing and recording the order that the digital picture password clicked, thereby cause the encrypted file to take place to leak.
On the basis of the scheme: in S2, the digital pictures provided are digital pictures of numbers 1 to 9, and the sizes of the digital pictures of numbers 1 to 9 are randomly different; the digital picture is set to be the digital picture of 1-9, so that a user can accurately record the set digital picture password, the user only records the number of 1-9 on the digital picture, meanwhile, the user can conveniently input the digital password with privacy, the sizes of the digital pictures of 1-9 are set to be different, the user needs to carefully observe the digital picture to click, the difficulty in inputting the digital picture password is greatly increased, and the situation that other users crack the password to steal files and information due to the fact that other users observe the digital password displayed on the digital picture is avoided.
As a still further scheme of the invention: displaying a preset error prompt if a space or a character appears in the password preset frame in S1, and prompting the space or the character to appear after the space or the character is input into the password input frame in S2; through the detection and judgment of characters and spaces during password presetting and password input, if spaces or characters and the like appear in a password presetting frame and a password input frame, the system can prompt errors immediately, and the set digital picture password cannot be stored, so that the problem that the password cannot be decoded when a user uses the preset password due to the fact that the user mistakenly touches a keyboard during password presetting and password input is avoided, the encrypted file cannot be accessed by the user, and the user experience of decoding the digital picture is reduced.
Further: in S1, the number of digital pictures that can be set in the password preset box is 5, and in S2, the number of digital pictures that can be filled in the password input box is 5; through controlling the quantity of the digital picture passwords, the user has to fill in 5 passwords when inputting and presetting the passwords, the problem that the user sets a longer or shorter password to cause the phenomenon that the user cannot accurately record the passwords or is observed and recorded by other users to crack files is avoided, the difficulty of the digital picture passwords is increased, the user can more conveniently record the set digital picture passwords, the efficiency of the user in decoding the digital picture passwords is improved, and the good feeling of the user in using the digital picture passwords is increased.
On the basis of the scheme: in S1, each digital picture can only be clicked once during password presetting, in S2, the password can also be clicked once during input, and after one click, the digital picture becomes gray and cannot be clicked again; when a user sets and inputs a digital picture password, in order to increase the difficulty of the digital picture password, each digital picture can be clicked and set only once, five digits of the set digital picture password are different digits, so that the situation that the user wants to set 5 passwords of the same digital picture is avoided, the difficulty of other people for breaking the passwords is easily reduced, the privacy of the passwords is greatly reduced, the digital picture is changed into grey after clicking, the user can be prompted that the digital picture is clicked or set, and the phenomenon that the user repeatedly clicks is avoided.
As a still further scheme of the invention: in S2, the order in which the passwords are input must match the order at the time of presetting; when a user inputs a preset digital picture password in the password input frame, the sequence of the input digital picture password is consistent with the set digital picture password, the input digital picture password is converted into a binary number group so as to be conveniently compared with the binary number group stored in the database, and meanwhile, the user can conveniently record the set digital picture password.
Further: in step S3, the password is filled in for judgment, and after the password filling fails, the time interval for filling the password again is 1 minute; after the user inputs the wrong password, the input box can not input the digital picture password, and after the interval of 1 minute, the user can input the password again, so that the user has enough time to remember and input the digital picture password.
To sum up, the working principle and working process of the encryption and decryption method for the digital pictures are that when in use, firstly, the interface of the preset password is entered, a user codes the digital pictures by observing the digital pictures and clicks the different digital pictures which are given by the server and are arranged in order, the interface of the preset password uploads the 5 different digital pictures selected by the user to the server and converts the digital pictures into binary groups one by one and stores the binary groups into a database, if the user touches the keyboard by mistake to cause the space or character of the password in the input frame, the system automatically detects and prompts the user to have the space or character, the preset digital picture password is used as the password for the user to decrypt, the foreground displays that the password is successfully set and automatically jumps to the decryption interface, and after entering the decryption interface, the server provides the digital pictures with different sizes again for the user, and the order of the digital pictures is a random disordering order, the user observes the provided digital pictures again to find the required digital pictures, and the user clicks 5 different digital pictures with the same order when the password is preset and fills the digital pictures into the password input frame, if a space or a character appears in the input frame again, the system prompts and warns the user again, and the input digital picture password containing the space or the character can not decode the file, the digital picture password is converted into a binary number group to be filled into the digital picture password input frame for decoding, the database is butted with the password input frame for filling the digital picture password, the database receives the digital picture password array in the input frame and compares the digital picture password array with the preset digital picture password array in the database for judgment, if the digital picture password is input wrongly, the foreground displays the decryption failure and automatically jumps to the password input interface, and the user can click the digital picture provided by the system again after waiting for 1 minute, the sequence of the digital picture provided again is different from that of the digital picture provided last time, the sequence of the digital picture passwords observed and recorded by other users is avoided, the file leakage is caused by repeated cracking of the digital picture passwords, the digital picture passwords in the input frame are converted into arrays and input into the input frame and are butted with the database again, the binary arrays in the input frame are compared and judged with the digital picture arrays preset in the database, the successful decryption can be displayed when the input digital picture passwords are consistent with the digital picture passwords in the preset state, the user can access the encrypted file and acquire the information in the encrypted file, and the operation is convenient.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (8)

1. An encryption and decryption method for digital pictures is characterized by comprising the following steps:
s1, clicking different digital pictures on the interface with preset passwords by a user, uploading the digital pictures to a server, converting the digital pictures into binary groups, storing the binary groups in a database, and displaying that the passwords are successfully set and automatically jumping to a decryption interface by a foreground;
s2, the system provides digital pictures for users, the users click the digital pictures corresponding to the preset passwords, the digital pictures are converted into binary number groups and filled into the password input boxes of the digital pictures for decoding;
s3, comparing and judging the digital picture password array in the received input frame with the preset digital picture password array by the database, displaying that decryption fails and automatically jumping to a password input interface by a foreground, clicking the digital picture again by a user, and converting the array to be input into the input frame for judgment;
s4, comparing the binary digit group in the password input box with the digit picture digit group preset in the database, and displaying the success of decryption when the input digit picture password is consistent with the preset digit picture password.
2. The encryption and decryption method of digital pictures according to claim 1, characterized in that: in S1, the digital pictures provided to the user when the password is preset are arranged in order, and in S2, the order in which the digital pictures are provided when the user inputs the password is randomly scrambled.
3. The encryption and decryption method of digital pictures according to claim 1, characterized in that: in S2, the digital picture is provided as a digital picture of numbers 1-9, and the digital picture sizes of numbers 1-9 are randomly different sizes.
4. The encryption and decryption method of digital pictures according to claim 1, characterized in that: in S1, a preset error prompt is displayed when a space or character appears in the password preset frame, and in S2, a space or character is prompted when a space or character is input into the password input frame.
5. The encryption and decryption method of digital pictures according to claim 1, characterized in that: in S1, the password preset box may set the number of 5 digital pictures, and in S2, the number of 5 digital pictures that can be filled in the password input box.
6. The encryption and decryption method of digital pictures according to claim 1, characterized in that: in S1, the password is preset and only one click is allowed for each digital picture, in S2, the password is only clicked once during input, and after one click, the digital picture is gray and cannot be clicked again.
7. The encryption and decryption method of digital pictures according to claim 1, characterized in that: in S2, the order in which the passwords are input must match the order at the time of presetting.
8. The encryption and decryption method of digital pictures according to claim 1, characterized in that: at S3, the password is filled in for judgment, and after the failure of the password filling, the password is filled again at a time interval of 1 minute.
CN202011079627.2A 2020-10-10 2020-10-10 Encryption and decryption method for digital picture Pending CN112231723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011079627.2A CN112231723A (en) 2020-10-10 2020-10-10 Encryption and decryption method for digital picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011079627.2A CN112231723A (en) 2020-10-10 2020-10-10 Encryption and decryption method for digital picture

Publications (1)

Publication Number Publication Date
CN112231723A true CN112231723A (en) 2021-01-15

Family

ID=74111941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011079627.2A Pending CN112231723A (en) 2020-10-10 2020-10-10 Encryption and decryption method for digital picture

Country Status (1)

Country Link
CN (1) CN112231723A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113158240A (en) * 2021-04-02 2021-07-23 上海嵩恒网络科技股份有限公司 Method and device for optimizing file decryption process, terminal and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827360A (en) * 2010-04-09 2010-09-08 中兴通讯股份有限公司 Method and device for setting communication terminal graphical passwords
CN102984349A (en) * 2012-10-31 2013-03-20 北京小米科技有限责任公司 Method and device for screen locking code generating and screen unlocking method and screen unlocking device and mobile terminal
CN103077342A (en) * 2011-10-25 2013-05-01 成都谛听科技有限公司 Method for inputting graphic random passwords
CN104820800A (en) * 2015-05-04 2015-08-05 南京理工大学 Setting method of graphical password of communication terminal
CN105447375A (en) * 2015-11-09 2016-03-30 广东欧珀移动通信有限公司 Picture decryption method and electronic device
CN106101447A (en) * 2016-08-08 2016-11-09 惠州Tcl移动通信有限公司 A kind of mobile terminal unlocking method and system
CN109492382A (en) * 2018-10-22 2019-03-19 黄超 A kind of single input frame login validation method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827360A (en) * 2010-04-09 2010-09-08 中兴通讯股份有限公司 Method and device for setting communication terminal graphical passwords
CN103077342A (en) * 2011-10-25 2013-05-01 成都谛听科技有限公司 Method for inputting graphic random passwords
CN102984349A (en) * 2012-10-31 2013-03-20 北京小米科技有限责任公司 Method and device for screen locking code generating and screen unlocking method and screen unlocking device and mobile terminal
CN104820800A (en) * 2015-05-04 2015-08-05 南京理工大学 Setting method of graphical password of communication terminal
CN105447375A (en) * 2015-11-09 2016-03-30 广东欧珀移动通信有限公司 Picture decryption method and electronic device
CN106101447A (en) * 2016-08-08 2016-11-09 惠州Tcl移动通信有限公司 A kind of mobile terminal unlocking method and system
CN109492382A (en) * 2018-10-22 2019-03-19 黄超 A kind of single input frame login validation method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113158240A (en) * 2021-04-02 2021-07-23 上海嵩恒网络科技股份有限公司 Method and device for optimizing file decryption process, terminal and storage medium

Similar Documents

Publication Publication Date Title
US11599624B2 (en) Graphic pattern-based passcode generation and authentication
US5425102A (en) Computer security apparatus with password hints
US11468157B2 (en) Method for authenticating a user by user identifier and associated graphical password
US20070226784A1 (en) System and method for user authentication
US11604867B2 (en) Graphic pattern-based authentication with adjustable challenge level
CN115664858B (en) Authentication data encryption and decryption system for network security
US20160127134A1 (en) User authentication system and method
CN1281025C (en) Password variable identification verification technique
JP2000315999A (en) Cryptographic key generating method
CN106790243B (en) A kind of password remapping method of safe U disc
CN112202729B (en) Dynamic obfuscated encryption and decryption method and device
CN103297391A (en) Graphical dynamic password inputting and verifying method
JP2006520047A (en) Method and system for enabling remote message creation
CN111460536B (en) Password verification method and device, storage medium and electronic equipment
US11829499B2 (en) Securing PIN information using obfuscation by applying extra security layer
CN112231723A (en) Encryption and decryption method for digital picture
CN104363087A (en) Encryption and decryption method and device
CN1599313A (en) Password dynamic enciphering inputmethod of public emipering mode
US11558375B1 (en) Password protection with independent virtual keyboard
CA2763860C (en) System, architecture and method for secure encryption and decryption
US11190505B2 (en) Password card hinting system
Al-Shqeerat An Enhanced Graphical Authentication Scheme Using Multiple-Image Steganography.
CN116684092B (en) Network-based password storage and recovery method and password recovery device
CN112486500B (en) System authorization deployment method
CN213876726U (en) Multi-security-level storage access device based on user face recognition

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210115