Advertisement
Guest User

Untitled

a guest
May 23rd, 2014
614
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. '''
  2. Exingulis Cryptography Department, a subset of the Exingulis Computing Department
  3.  
  4. Name:   Protocol 5 Prototype Function
  5. PN:     NXLE055CD
  6. CodeID: CD06114
  7. BLoc:   "\Atrisk\ComD\CryptD\ExpEncProgram\Protocol 5\func.py"
  8. '''
  9.  
  10. import hashlib
  11.  
  12. def pr5(plaintext):
  13.         defaultKey = "DBx2Ip6nYyr6khhlIv95tzZhUkqEDftY"
  14.         keylist = ""
  15.  
  16.         for i in plaintext.lower():
  17.             key = hashlib.sha1()
  18.             key.update(defaultKey + i + keylist)
  19.             keylist = keylist + key.hexdigest()[:5] + "."
  20.  
  21.         return keylist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement