Advertisement
MarkUa

Untitled

Oct 7th, 2019
478
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. from RC5 import RC5
  2. import md5
  3.  
  4. old = md5.md5sum("he")
  5. young = md5.md5sum(old)
  6. key = bytes.fromhex(old) + bytes.fromhex(young)
  7. print(key)
  8. testRC5 = RC5(64, 16, key)
  9.  
  10. s = "hello"
  11.  
  12. print(testRC5.encryptBytes(s.encode('utf-8')))
  13. print(testRC5.decryptBytes(testRC5.encryptBytes(s.encode('utf-8'))).decode('utf-8') )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement