chris_cryptojs_encrypto_decrypto

1.0.3 • Public • Published

chris_cryptojs_encrypto_decrypto

JavaScript 基于CryptoJS 的 加密解密函数方法

// 使用示例 const secretKey = 'your_secret_key'; const plainText = 'Hello, world!';

// 加密 const encryptedText = encryptText(plainText, secretKey); console.log('Encrypted Text:', encryptedText);

// 解密 const decryptedText = decryptText(encryptedText, secretKey); console.log('Decrypted Text:', decryptedText);

Readme

Keywords

none

Package Sidebar

Install

npm i chris_cryptojs_encrypto_decrypto

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

1.61 kB

Total Files

3

Last publish

Collaborators

  • chrisjaja