@fruitsjs/crypto
Version:
Cryptographic functions for building Fruits Eco-Blockchain apps.
15 lines • 481 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.decryptAES = void 0;
const CryptoJS = require("crypto-js");
const decryptAES = (encryptedBase64, key) => {
try {
const decrypted = CryptoJS.AES.decrypt(encryptedBase64, key);
return decrypted && decrypted.toString(CryptoJS.enc.Utf8);
}
catch (e) {
return undefined;
}
};
exports.decryptAES = decryptAES;
//# sourceMappingURL=decryptAES.js.map