jerson / react-native-fast-rsa

RSA for react native made with golang for fast performance
https://www.npmjs.com/package/react-native-fast-rsa
MIT License
35 stars 11 forks source link

Encrypting / decrypting private key with a passphrase #76

Closed clauderobi closed 11 months ago

clauderobi commented 11 months ago

Is it possible to use this library to lock/unlock private keys with a passphrase?

jerson commented 11 months ago

hey @clauderobi, yes you can use decryptPrivateKey and encryptPrivateKey methods

 static decryptPrivateKey(privateKeyEncrypted: string, password: string,): Promise<string>
 static encryptPrivateKey(privateKey: string, password: string, cipherName: Cipher): Promise<string>
clauderobi commented 11 months ago

Super!! Thanks