Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support decrypting AES-GCM cipher text #222

Open
orhoj opened this issue Sep 23, 2022 · 0 comments
Open

Support decrypting AES-GCM cipher text #222

orhoj opened this issue Sep 23, 2022 · 0 comments
Labels
[Type] Task An additional feature or improvement.

Comments

@orhoj
Copy link
Contributor

orhoj commented Sep 23, 2022

Task description
The browser wallet uses AES-GCM to encrypt the seed phrase. This task should extend utils to support decrypting an AES-GCM cipher text, so that it can be used to decrypt the seed phrase from the browser wallet. The format used by the browser wallet is similar to the existing AES-256, but with a different encryptionMethod.

{
   "seedPhrase":{
      "cipherText":"pcCvMV9rY0gLz4uSk5hGMwIyKPwGAEpUN2hwHLpDfiVv7tIfHCLHtu3u5Oy+Bh+4Jjthb7r6QgR06sYKuumhxacHSC3vuRnaPyrA+KWUNNF9uMZmbCnpSUbnORrM4YgDWU7VGoXno10FqBjb1arairb06taKlZn+U9fX9Eq6FrU+45A3hAcFbbFJClqazpdBnKffRhbTMFTTIMF0Mycd26Wve5wCURwCtmV7",
      "metadata":{
         "encryptionMethod":"AES-256-GCM",
         "hashAlgorithm":"sha256",
         "initializationVector":"Fo/sw+J37iREU7IZJFF0vQ==",
         "iterations":10000,
         "keyDerivationMethod":"PBKDF2WithHmacSHA256",
         "keyLen":32,
         "salt":"yautFuiwJp4UMY4QeoMl5A=="
      }
   }
}
@orhoj orhoj added the [Type] Task An additional feature or improvement. label Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Task An additional feature or improvement.
Projects
None yet
Development

No branches or pull requests

1 participant