Last active
January 24, 2018 16:13
-
-
Save parzibyte/49c61a945a0000d9404cb1f307790d89 to your computer and use it in GitHub Desktop.
Cifrar y descifrar con SJCL en Python 3. https://parzibyte.me/blog/2018/01/24/implementacion-sjcl-stanford-javascript-crypto-library-en-python/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sjcl import SJCL | |
texto_cifrado = SJCL().encrypt("Hola, soy un mensaje secreto", "Yo soy la palabra secreta") | |
print("Texto cifrado: ") | |
print(texto_cifrado) | |
texto_descifrado = SJCL().decrypt(texto_cifrado, "Yo soy la palabra secreta") | |
print("Texto descifrado: ") | |
print(texto_descifrado) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment