Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from RC5 import RC5
- import md5
- old = md5.md5sum("he")
- young = md5.md5sum(old)
- key = bytes.fromhex(old) + bytes.fromhex(young)
- print(key)
- testRC5 = RC5(64, 16, key)
- s = "hello"
- print(testRC5.encryptBytes(s.encode('utf-8')))
- print(testRC5.decryptBytes(testRC5.encryptBytes(s.encode('utf-8'))).decode('utf-8') )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement