feat(cipher): add ciphering
parent
62b5d7d3ef
commit
54766d60c1
File diff suppressed because one or more lines are too long
@ -1 +1,9 @@
|
||||
/* Project specific Javascript goes here. */
|
||||
|
||||
function cipher(text) {
|
||||
return CryptoJS.AES.encrypt(text, me).toString();
|
||||
}
|
||||
|
||||
function decipher(text, key) {
|
||||
return CryptoJS.AES.decrypt(text, key).toString(CryptoJS.enc.Utf8);
|
||||
}
|
||||
|
@ -0,0 +1 @@
|
||||
function cipher(t){return CryptoJS.AES.encrypt(t,me).toString()}function decipher(t,r){return CryptoJS.AES.decrypt(t,r).toString(CryptoJS.enc.Utf8)}
|
Loading…
Reference in New Issue