Skip to content

Instantly share code, notes, and snippets.

View coturiv's full-sized avatar
🏠
Working remotely

Ken coturiv

🏠
Working remotely
  • Verum SG LLC
  • 11:42 (UTC +08:00)
View GitHub Profile
@coturiv
coturiv / Time for relaxing
Last active September 5, 2022 03:47
Relaxing
- Film 1
https://ok.ru/video/c3616013
- Film 2
https://www.dropbox.com/sh/ljp3obqho4embp9/AACsJMP79R2Zg4aBDWK5a2gpa?dl=0
const iv = CryptoJS.enc.Base64.parse("101112131415161718191a1b1c1d1e1f");
const encrypt = (message = '', key = '') => {
const encrypted = CryptoJS.AES.encrypt(message, key, {iv}).toString();
return CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(encrypted));
}
const decrypt = (message = '', key = '') => {
const decrypted = CryptoJS.enc.Base64.parse(message).toString(CryptoJS.enc.Utf8);