This guide shows how to load a private Virgil KeyThe Virgil Key is a wrapper of the user's secure Private Key more ..., which is stored on the device. The key must be loaded when Alice wants to signA Digital Signature can be used with any kind of message, so the receiver can be sure of the sender's identity and that the message arrived intact more ... some data, 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 ... any encrypted content, and perform cryptographic operations.
Set up your project environment before you begin to load a Virgil Key, with the getting started guide.
In order to load the Virgil Key from the default storage:
- Initialize the Virgil SDKThe SDK helps take tedious complexity out of coding by providing APIs for all of Virgil Services.
virgil = VirgilApi.new(access_token: "[YOUR_ACCESS_TOKEN_HERE]")
- Alice has to load her Virgil Key from the protected storage and enter the Virgil Key's password
# load a Virgil Key from storage
alice_key = virgil.keys.load("[KEY_NAME]", "[OPTIONAL_KEY_PASSWORD]")
To load a Virgil Key from a specific storage, developers need to change the storage path during Virgil SDK initialization.