Horje
simple AES encryption javascript Code Example
simple AES encryption javascript
function encrypt(message = '', key = ''){
    var message = CryptoJS.AES.encrypt(message, key);
    return message.toString();
}
function decrypt(message = '', key = ''){
    var code = CryptoJS.AES.decrypt(message, key);
    var decryptedMessage = code.toString(CryptoJS.enc.Utf8);

    return decryptedMessage;
}
console.log(encrypt('Hello World'));
console.log(decrypt('U2FsdGVkX1/0oPpnJ5S5XTELUonupdtYCdO91v+/SMs='))




Javascript

Related
javascript insert sibling after Code Example javascript insert sibling after Code Example
hide bootstrap modal jquery Code Example hide bootstrap modal jquery Code Example
json nuget package manager Code Example json nuget package manager Code Example
array contains case insensitive javascript Code Example array contains case insensitive javascript Code Example
javascript push item to beginning of array Code Example javascript push item to beginning of array Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11