RC5Cryptographic Algorithm
RC5Cryptographic Algorithm
(RC 5)
Encryption
Algorithm
BY ALFIAN NUR FATHONI L200190002
RC5 encryption
algorithm is a fast
symmetric block cipher
suitable for hardware or
software imple-
mentations.
-- ron rivest --
RC5 is symetric block chiper (fixed bit-legth).
Block ciphers are widely used to encrypt large amounts of data by chunking
chipers.
What is block chiper ?
How about RC5 ?
(^) is XOR
KEY = "CryptoClassUMS2022"
w = 32 bits
r = 12 round
b = 18 bytes
L =[0, 0, 0, 0, 0]
What Is <<< actually do ?
KEY EXPANSION STEP 3
Initializing Array of S (t = (2 * (r + 1)) )
combining magic constant and aritmetic progression module (2**w)
S =[0, . . ., 0]
KEY EXPANSION STEP 4
Mix in the user's secret key in three passes over the arrays S and L.
XOR
KEY EXPANSION RESULT
S Table (array)
ENCRYPTION
DECRYPTION
DEMO & CODE
HTTPS://GITHUB.COM/ALFIANKAN/RC5-GOLANG-IMPLEMENTATION
Thank You for
listening!