Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''
- Exingulis Cryptography Department, a subset of the Exingulis Computing Department
- Name: Protocol 5 Prototype Function
- PN: NXLE055CD
- CodeID: CD06114
- BLoc: "\Atrisk\ComD\CryptD\ExpEncProgram\Protocol 5\func.py"
- '''
- import hashlib
- def pr5(plaintext):
- defaultKey = "DBx2Ip6nYyr6khhlIv95tzZhUkqEDftY"
- keylist = ""
- for i in plaintext.lower():
- key = hashlib.sha1()
- key.update(defaultKey + i + keylist)
- keylist = keylist + key.hexdigest()[:5] + "."
- return keylist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement