react-native-virgil-crypto
react-native-virgil-crypto copied to clipboard
Conversion of keys
The below function generates keys in buffer format:
const keyPair = virgilCrypto.generateKeys();
But I need to save these keys in my database, where it doesn't allow buffer values. In what format can I convert it to for saving in my database which can be easily retrieved and converted back for encryption and decryption.