VirgilSecurity / react-native-virgil-crypto

BSD 3-Clause "New" or "Revised" License
48 stars 17 forks source link

Conversion of keys #61

Open engineer2u4u opened 2 years ago

engineer2u4u commented 2 years ago

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.