Importing Virgil Key
This guide shows how to export a Virgil KeyThe Virgil Key is a wrapper of the user's secure Private Key more ... from a Base64 encoded string representation.
Set up your project environment before you begin to import a Virgil Key, with the getting started guide.
In order to import a Virgil Key, we need to:
- Initialize Virgil SDKThe SDK helps take tedious complexity out of coding by providing APIs for all of Virgil Services.
var virgil = new VirgilApi();
- Choose a Base64 encoded string
- Import the Virgil Key from the Base64 encoded string
// initialize a buffer from base64 encoded string
var aliceKeyBuffer = VirgilBuffer.From(
// import Virgil Key from buffer
var aliceKey = virgil.Keys.Import(aliceKeyBuffer, "[OPTIONAL_KEY_PASSWORD]");