Randomized Approach Symmetric Key Stream Cipher used for Encryption-Decryption.
Key Generation • Encryption • Decryption • Advantages •
Requirement:
Generated-Key is similar with hashing
Unless fixed length hashing, the generated key is of any size depanding on inputs message [variable-length hashing]
Key Generation Process
Roughly divided into three sections:
Example:
Let’s assume:
Initial Key (K) = HstU@5200
Message (M) = Hajee DanesH 26/10/19
Then:
Enhanced Key = HstU@5200HstU@5200Hst
Substitute Key = 6u,b.X(V’(g}T JyHxyYo
R-I Shuffle = ,(V6T.xu ‘boyXH}ygYJ(
Final Key:
,(V6T.xu 'boyXH}ygYJ(
With generated key and plaintext, the encryption process started. It can divided into two parts:
Padding is done in 5 steps:
Example:
We got:
Generated Key (K) (21) = ,(V6T.xu ‘boyXH}ygYJ(
Message (M) (21) = Hajee DanesH 26/10/19
Then:
Base-Format Encryption (C) (21) = t+b=[N^x0.wY;, NL9*{a
Padding:
Format length of encrypted string (C) (24) = t+b=[N^x0.wY;, NL9*{a~~~
Format length of generated key (K) (24) = ,(V6T.xu ‘boyXH}ygYJ(,(V
Key-triggered-reversible shuffle (C) = ~,t~~L=a0Y{N[+w.;x9b^*N
Hexadecimal-conversion = 7E2C747E7E4C3D6130597B4E5B2B772E3B7839625E2A4E20
Randomizing with CC and EA = 082C7498034C3D6130597B4E5B2B772E3B7839625E2A4E20
Final Encrypted Result:
082C7498034C3D6130597B4E5B2B772E3B7839625E2A4E20
Decryption process divides in two parts:
Key Generation is always the first step in both Encryption and Decryption.
Normalizing of encrypted string is done with 5 steps:
Example:
We got:
Generated Key (K) (21) = ,(V6T.xu ‘boyXH}ygYJ(
Ciphertext (C) (24) = 082C7498034C3D6130597B4E5B2B772E3B7839625E2A4E20
Decryption:
Character seperation of CC and EA = 7E2C747E7E4C3D6130597B4E5B2B772E3B7839625E2A4E20
Base conversion (C) = ~,t~~L=a0Y{N[+w.;x9b^*N
Format generated key (K) = ,(V6T.xu ‘boyXH}ygYJ(,(V
Key-triggered-reversible shuffle (C) (24) = t+b=[N^x0.wY;, NL9*{a~~~
Fix length (C) (21) = t+b=[N^x0.wY;, NL9*{a
Decryption in base-format (M) = Hajee DanesH 26/10/19
Final Decrypted Result:
Hajee DanesH 26/10/19
Sazzad-Saju
END OF DOCUMENT