Python-based tool used to encrypt/decrypt via the command-line or API using symmetric and asymmetric cryptography.
pip install git+https://github.com/azweb76/x-crypto [--upgrade]
To encrypt text.
# xcrypto encrypt [text | -]
xcrypto encrypt "my text"
# returns pFU2+m740G1pXzlZacgPPQ==
# from stdin
echo "this is a test" | xcrypto encrypt -
# returns pFU2+m740G1pXzlZacgPPQ==
To decrypt text.
# xcrypto decrypt [encrypted_text | -]
xcrypto decrypt "pFU2+m740G1pXzlZacgPPQ=="
# returns "my text"
# from stdin
echo "pFU2+m740G1pXzlZacgPPQ==" | xcrypto encrypt -
# returns "my text"