react-native-virgil-crypto icon indicating copy to clipboard operation
react-native-virgil-crypto copied to clipboard

Conversion of keys

Open engineer2u4u opened this issue 3 years ago • 0 comments

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.

engineer2u4u avatar Nov 06 '21 04:11 engineer2u4u