CN107276746A - A kind of Chinese character encipher-decipher method - Google Patents
A kind of Chinese character encipher-decipher method Download PDFInfo
- Publication number
- CN107276746A CN107276746A CN201710589730.3A CN201710589730A CN107276746A CN 107276746 A CN107276746 A CN 107276746A CN 201710589730 A CN201710589730 A CN 201710589730A CN 107276746 A CN107276746 A CN 107276746A
- Authority
- CN
- China
- Prior art keywords
- chinese character
- encrypted
- character string
- string
- decryption
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/06—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
- H04L9/0618—Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
- H04L9/0631—Substitution permutation network [SPN], i.e. cipher composed of a number of stages or rounds each involving linear and nonlinear transformations, e.g. AES algorithms
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Document Processing Apparatus (AREA)
Abstract
The invention belongs to character encryption and decryption technology field, a kind of Chinese character encipher-decipher method is disclosed, Chinese character string to be encrypted is subjected to unicode codings first;The Chinese character string after the coding is encrypted followed by AES, encrypted characters string is generated;The encrypted characters string is decrypted using AES after carrying out the transmission of data to the encrypted characters string, generation decryption character string;The decryption character string is finally subjected to unicode transcodings, the Chinese character string before being encrypted;The mess code rate in encryption process can be effectively reduced using the method, making the security of data transfer increases.
Description
Technical field
The present invention relates to a kind of encipher-decipher method, particularly a kind of Chinese character encipher-decipher method, for Chinese character
It is encrypted.
Background technology
Data transfer is at every moment all occurring, and its security needs to be guaranteed, and character string is entered frequently with AES at present
Row encryption.AES is as the Advanced Encryption Standard in cryptography, and also known as Advanced Encryption Standard Rijndael enciphered methods are U.S.'s connection
A kind of block encryption standard that government of nation uses.This standard is used for substituting original DES, has been analyzed in many ways and widely complete
The world is used.By the selection flow of 5 years, Advanced Encryption Standard by National Institute of Standards and Technology (NIST) in
It is published on FIPS PUB 197 on November 26th, 2001, and turns into effective standard on May 26th, 2002.It is 2006, senior
Encryption standard already turns into one of most popular algorithm in symmetric key encryption.
Due to the diversity and complexity of Chinese character, when carrying out encryption and decryption to Chinese character using AES, often occur
Mess code, this is totally unfavorable for the transmission of data.
The content of the invention
Based on above technical problem, the invention provides a kind of Chinese character encipher-decipher method, so as to solve existing AES
The technical problem of mess code can be produced when carrying out encryption and decryption to Chinese character.
The technical solution adopted by the present invention is as follows:
A kind of Chinese character encipher-decipher method, comprises the following steps:
Step 1:Chinese character string to be encrypted is subjected to unicode codings;
Step 2:The Chinese character string after the coding is encrypted using AES, encrypted characters string is generated;
Step 3:The transmission of data is carried out to the encrypted characters string;
Step 4:The encrypted characters string is decrypted using AES, generation decryption character string;
Step 5:The decryption character string is subjected to unicode transcodings, the Chinese character string before being encrypted.
Further, in the step 1, the Chinese character in Chinese character string to be encrypted is taken out, by each Chinese character
Corresponding unicode codes are changed into respectively.
Further, in the step 2, Chinese character string after coding is utilized to be divided into some Plaintext blocks by described, according to
AES Advanced Encryption Standards create scrambler, and the Plaintext block is encrypted using the scrambler, generate encrypted characters string.
Further, in the step 4, the encrypted characters string is divided into some ciphertext blocks, according to AES superencipherments
The ciphertext blocks are decrypted by rule creation scrambler using the scrambler, generation decryption character string.
Further, in the step 5, the decryption character string is divided into multiple unicode codes by Li Yong u marks,
The unicode codes are converted into corresponding Chinese character, each Chinese character is combined to the Chinese to be formed after decryption
Character string.
In summary, by adopting the above-described technical solution, the beneficial effects of the invention are as follows:
Chinese character can be converted into unique code by Unicode codings, recycle AES to carry out encryption and decryption, can be effective
The mistake for preventing the generation of mess code in encryption and decryption, reducing data transfer.
Brief description of the drawings
Fig. 1 is the flow chart of the present invention.
Embodiment
All features disclosed in this specification, can be with any in addition to mutually exclusive feature and/or step
Mode is combined.
The present invention is elaborated below in conjunction with the accompanying drawings.
A kind of Chinese character encipher-decipher method, comprises the following steps:
Step 1:Chinese character string to be encrypted is subjected to unicode codings, the Chinese in Chinese character string to be encrypted is taken out
Character, corresponding unicode codes are changed into by each Chinese character respectively.
Step 2:The Chinese character string after the coding is encrypted using AES, encrypted characters string is generated;
Utilize Chinese character string after coding to be divided into some Plaintext blocks by described, create close according to AES Advanced Encryption Standards
Code device, the Plaintext block is encrypted using the scrambler, generates encrypted characters string.
Step 3:The transmission of data is carried out to the encrypted characters string;
Step 4:The encrypted characters string is decrypted using AES, generation decryption character string;
The encrypted characters string is divided into some ciphertext blocks, according to AES superencipherment rule creation scramblers, institute is utilized
State scrambler the ciphertext blocks are decrypted, generation decryption character string.
Step 5:The decryption character string is subjected to unicode transcodings, the Chinese character string before being encrypted.
The decryption character string is divided into multiple unicode codes by Li Yong u marks, by the unicode code conversions
Into corresponding Chinese character, each Chinese character is combined to the Chinese character string to be formed after decryption.
After the Chinese character string is encrypted using AES, the transmission of data is carried out using encrypted characters string.
It is embodiments of the invention as described above.The present invention is not limited to the above-described embodiments, anyone should learn that
The structure change made under the enlightenment of the present invention, the technical schemes that are same or similar to the present invention each fall within this
Within the protection domain of invention.
Claims (5)
1. a kind of Chinese character encipher-decipher method, it is characterised in that:Comprise the following steps:
Step 1:Chinese character string to be encrypted is subjected to unicode codings;
Step 2:The Chinese character string after the coding is encrypted using AES, encrypted characters string is generated;
Step 3:The transmission of data is carried out to the encrypted characters string;
Step 4:The encrypted characters string is decrypted using AES, generation decryption character string;
Step 5:The decryption character string is subjected to unicode transcodings, the Chinese character string before being encrypted.
2. a kind of Chinese character encipher-decipher method according to claim 1, it is characterised in that:In the step 1, taking-up is treated
The Chinese character in Chinese character string is encrypted, each Chinese character is changed into corresponding unicode codes respectively.
3. a kind of Chinese character encipher-decipher method according to claim 1, it is characterised in that:, will be described in the step 2
Some Plaintext blocks are divided into using Chinese character string after coding, scrambler are created according to AES Advanced Encryption Standards, using described close
The Plaintext block is encrypted code device, generates encrypted characters string.
4. a kind of Chinese character encipher-decipher method according to claim 1, it is characterised in that:, will be described in the step 4
Encrypted characters string is divided into some ciphertext blocks, according to AES superencipherment rule creation scramblers, using the scrambler to described
Ciphertext blocks are decrypted, generation decryption character string.
5. a kind of Chinese character encipher-decipher method according to claim 1, it is characterised in that:In the step 5, using u
The decryption character string is divided into multiple unicode codes by mark, and the unicode codes are converted into corresponding middle word
Symbol, each Chinese character is combined the Chinese character string to be formed after decryption.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710589730.3A CN107276746A (en) | 2017-07-19 | 2017-07-19 | A kind of Chinese character encipher-decipher method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710589730.3A CN107276746A (en) | 2017-07-19 | 2017-07-19 | A kind of Chinese character encipher-decipher method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107276746A true CN107276746A (en) | 2017-10-20 |
Family
ID=60078791
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710589730.3A Pending CN107276746A (en) | 2017-07-19 | 2017-07-19 | A kind of Chinese character encipher-decipher method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107276746A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108536860A (en) * | 2018-04-18 | 2018-09-14 | 武汉轻工大学 | Encrypting web, decryption method, terminal device and computer readable storage medium |
CN110505050A (en) * | 2019-08-27 | 2019-11-26 | 北京电子科技学院 | A kind of Android information encryption system and method based on national secret algorithm |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100492368C (en) * | 2007-10-17 | 2009-05-27 | 北京逍遥掌信息技术有限公司 | Mobile terminal apparatus electronic file storage and management method |
CN106067874A (en) * | 2016-05-20 | 2016-11-02 | 深圳市金立通信设备有限公司 | A kind of method by data record to server end, terminal and server |
CN106161021A (en) * | 2015-03-30 | 2016-11-23 | 重庆邮电大学 | Private data sending method and device, private data method of reseptance and device |
CN102740246B (en) * | 2011-04-15 | 2017-02-15 | 中兴通讯股份有限公司 | Method, system, and device for processing media message |
CN106452756A (en) * | 2016-11-08 | 2017-02-22 | 王栋 | Construction verification method and device capable of verifying security two-dimensional code offline |
-
2017
- 2017-07-19 CN CN201710589730.3A patent/CN107276746A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100492368C (en) * | 2007-10-17 | 2009-05-27 | 北京逍遥掌信息技术有限公司 | Mobile terminal apparatus electronic file storage and management method |
CN102740246B (en) * | 2011-04-15 | 2017-02-15 | 中兴通讯股份有限公司 | Method, system, and device for processing media message |
CN106161021A (en) * | 2015-03-30 | 2016-11-23 | 重庆邮电大学 | Private data sending method and device, private data method of reseptance and device |
CN106067874A (en) * | 2016-05-20 | 2016-11-02 | 深圳市金立通信设备有限公司 | A kind of method by data record to server end, terminal and server |
CN106452756A (en) * | 2016-11-08 | 2017-02-22 | 王栋 | Construction verification method and device capable of verifying security two-dimensional code offline |
Non-Patent Citations (1)
Title |
---|
小渣渣: ""\u"开头的Unicode加解密工具", 《HTTPS://WWW.ITSVSE.COM/THREAD-2286-1-1.HTML》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108536860A (en) * | 2018-04-18 | 2018-09-14 | 武汉轻工大学 | Encrypting web, decryption method, terminal device and computer readable storage medium |
CN108536860B (en) * | 2018-04-18 | 2022-04-15 | 武汉轻工大学 | Webpage encryption and decryption methods, terminal equipment and computer readable storage medium |
CN110505050A (en) * | 2019-08-27 | 2019-11-26 | 北京电子科技学院 | A kind of Android information encryption system and method based on national secret algorithm |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109818739B (en) | Generation type image steganography method based on countermeasure network | |
CN109861810B (en) | Data encryption method and decryption method based on chaotic block encryption algorithm | |
CN110299989B (en) | Encryption and decryption method for Chinese and English character strings | |
CN116032474B (en) | Safety protection system based on big data computer network | |
CN101447870A (en) | Safe storage method of private key based on technology of distributed password | |
CN102282798A (en) | Bandwidth efficient method and system for obscuring the existence of encryption in a communications channel | |
CN110149200A (en) | A kind of color image encrypting method based on dynamic DNA and 4D chaos | |
Aung et al. | A complex transformation of monoalphabetic cipher to polyalphabetic cipher:(Vigenère-Affine cipher) | |
CN115834060B (en) | Electronic document security import and export method and system based on cryptography | |
Nazarkevych et al. | Data protection based on encryption using Ateb-functions | |
Kumar et al. | A novel approach of symmetric key cryptography | |
CN105260981A (en) | Optimal coupling image steganography method based on packet replacement | |
CN104518865A (en) | Data encryption method based on password book | |
Majumder et al. | Secure data communication and cryptography based on DNA based message encoding | |
CN107276746A (en) | A kind of Chinese character encipher-decipher method | |
CN104113410B (en) | Method and device for data encryption transmission based on multi-table encryption method | |
CN116707771A (en) | Communication method based on data encryption | |
Sermeno et al. | Modified Vigenere cryptosystem: An integrated data encryption module for learning management system | |
CN114826590A (en) | Packet mode encryption method, packet mode decryption method, packet mode encryption device, packet mode decryption device and packet mode decryption equipment | |
CN107277048A (en) | A kind of encrypting and decrypting method for communication authentication | |
CN111556004A (en) | Hybrid dual network encryption system | |
US20170041133A1 (en) | Encryption method, program, and system | |
CN104038337A (en) | Data encryption method based on AES128 | |
CN105429749A (en) | Separated feature data encryption and decryption method and system | |
CN106452728A (en) | Data encryption method |
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 |
Application publication date: 20171020 |
|
RJ01 | Rejection of invention patent application after publication |