Decrypt the Encrypted Data
You can easily decryptDecryption is the reverse to Encryption and allows one to review plaintext via a Virgil Key related to the Public Key responsible for the initial encryption more ... your encrypted files at any time using your private Virgil KeyThe Virgil Key is a wrapper of the user's secure Private Key more ....
To decrypt your encrypted files, load the data and use your own Virgil Key to decrypt the data.
# load a Virgil Key from device storage
alice_key = virgil.keys.load("[KEY_NAME]", "[OPTIONAL_KEY_PASSWORD]")
# decrypt a cipher bytearray using loaded Virgil Key
origin_data = alice_key.decrypt(cipher_buffer)
To decrypt data, you will need your stored Virgil Key. See the Loading Key guide for more details.
That's it. You've now learned how to use Virgil Security for securely encrypted communication. You've learned how to:
- Register a Virgil CardEach Card contains attributes associated with the holder of the Private key and are used to prove the ownership of a Public key more ...
- Encrypt data using a Virgil Card
- Decrypt data using a Virgil Key loaded on a device