Comparing version 0.0.12 to 0.0.13
const CryptoJS = require("crypto-js"); | ||
export const decryptAES = (encryptedSeedPhrase, password) => { | ||
const decrypted = CryptoJS.AES.decrypt(encryptedSeedPhrase, password); | ||
return decrypted.toString(CryptoJS.enc.Utf8); | ||
}; | ||
const our_password = password ? password : "mnemonic" | ||
const decrypted = CryptoJS.AES.decrypt(encryptedSeedPhrase, our_password); | ||
return decrypted.toString(CryptoJS.enc.Utf8) | ||
}; |
{ | ||
"name": "doichain", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "A js-Doichain library. The goal is to fully cover the Doichain protocoll", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23364
488