-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Labels
Milestone
Description
part of #1051 when importing keys, backing up and so on
Right now the encryptKey and decryptKey methods accept an armored key and pass phrase and return an armored key encrypted or decrypted. This could be trivially implemented using pgpainless. The function signatures are:
fun encryptKey(armored: String, passphrase: String): String
fun decryptKey(armored: String, passphrase: String): StringI'm assigning to Ivan to just create these two methods, which can be used as direct replacement of existing methods. Also, in this particular case, I think Ivan may also be able to actually replace existing node calls in the Android app with this pgpainless implementation.
Here is one usage example:
val (decryptedKey) = NodeCallsExecutor.decryptKey(nodeKeyDetails.privateKey!!, oldPassphrase!!)
Reactions are currently unavailable