def DecryptData(CipherText, Key, Counter): return CTR.controlledCTR(Key, Counter, CipherText)
def EncryptData(UserData, Key, Counter): UserData = UserData.replace(";", "") UserData = UserData.replace("=", "") Str = "comment1=cooking%20MCs;userdata=" + UserData + ";comment2=%20like%20a%20pound%20of%20bacon" return CTR.controlledCTR(Key, Counter, Str)