Secrypto is an excellent cryptographer, with more than
from Secrypto import Key
key = Key()
Key
can have the following parameters:
alterations
(optional) (default -> 3) - This defines the number of alterations for each character.seed
(optional) (default -> None) - This defines the random seed at which the key will be made
You can also get the seed
at which the Key is made and the key
itself.
To get the key
and the seed
from the Key
you can write:
from Secrypto import Key
key = Key()
print(key.key)
print(key.seed)
When you have the key, it is pretty simple to encrypt and decrypt.
from Secrypto import Key, encrypt, decrypt
key = Key()
text = "Hello, World"
encryption = encrypt(
text,
key
)
print(encryption)
decryption = decrypt(
encryption,
key #the same key should be used.
)
print(decryption)
if text == decryption:
print("success!")
Write
pip install Secrypto
Or see the PyPI page
Secrypto is licensed under the CC0 1.0 Universal License.
Follow the CONTRIBUTING.md to ensure a smooth contribution process.
Secrypto has the Contributor Covenant Code of Conduct.
To view the security and data safety of Secrypto, see SECURITY.md
.