The principle is very simple:
Byte Set 1 (n-bit random byte set) Byte Set 2 (m-bit random byte set)
Encrypted byte set = Byte set 1 + Encrypted byte set + Byte set 2
Byte set after encrypted word = encryption (encrypted byte set, password)
Decrypted byte set = decrypted (decrypted byte set, password)
Decrypted byte set = byte set 1 + encrypted byte set + byte set 2
Decrypted byte set = get between byte set (decrypted byte set, n+1, get the byte set length (decrypted byte set) -m-n)
.Version 2 .Support library dp1 .Subprogram encryption_encryptionorDecryption, Byte set .parameter Byte set数据, Byte set .parameter encryptionorDecryption, Integer type, , 1encryption,2Decryption .Local variables Password text, Text type .Local variables encryption算法, Integer type .Local variables word, Text type .Local variables mima1, Text type .Local variables mima2, Text type .Local variables Byte set数据中间, Byte set .If true (encryptionorDecryption ≠ 1 or encryptionorDecryption ≠ 2) return (Byte set数据) .If true结束 word = “0123456789AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz!#$%'()*+,-./:;<=>?@[\]^_`{|}~&” .Cycle first (5, ) mima1 = mima1 + Take the middle of the text (word, Take a random number (1, 93), 1) mima2 = mima2 + Take the middle of the text (word, Take a random number (1, 93), 1) .Calculate the cycle () Password text = “www” encryption算法 = 1 .If true (encryptionorDecryption = 1) Byte set数据中间 = 到Byte set (mima1) + Byte set数据 + 到Byte set (mima2) return (encryption数据 (Byte set数据中间, Password text, encryption算法)) .If true结束 .If true (encryptionorDecryption = 2) Byte set数据中间 = Decryption数据 (Byte set数据, Password text, encryption算法) Byte set数据中间 = 取Byte set中间 (Byte set数据中间, 6, 取Byte set长度 (Byte set数据中间) - 10) return (Byte set数据中间) .If true结束
The above is all the content of this introduction. Thank you for your support.