mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-12 03:06:24 +00:00
Provide examples how to encode mail address with PHP, decrypt in python, using standard AES for use as local proxy for libravatar image requests
This commit is contained in:
9
encrypted_proxy/test_code/decrypt.py
Normal file
9
encrypted_proxy/test_code/decrypt.py
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from MyCypher import MyCypher
|
||||
|
||||
encstr = bytes('drEN/LqPBu1wJYHpN5eCjZXqVgvDEP3rZnXJt85Ma0k=', 'utf-8')
|
||||
|
||||
cypher = MyCypher(iv = str('asdf'))
|
||||
print(cypher.decrypt(encstr))
|
||||
|
||||
Reference in New Issue
Block a user