Node.js/package
cryptojs 암호화 라이브러리
다닿
2023. 11. 12. 16:36
인스톨
npm install crypto-js
사용예시
const CryptoJS = require("crypto-js");
require('dotenv').config();
module.exports = (password) => {
return CryptoJS.SHA3(password, process.env.ENCRYPT).toString();
}
참고 사이트
https://cryptojs.gitbook.io/docs/
CryptoJS - CryptoJS
For the ciphertext, the cipher algorithms accept either strings or instances of CryptoJS.lib.CipherParams. A CipherParams object represents a collection of parameters such as the IV, a salt, and the raw ciphertext itself. When you pass a string, it's autom
cryptojs.gitbook.io