๐Ÿ“š Reference


๐Ÿ“œ Chapter


โ€ฃ

crypto-js


์„ค์น˜


# npm
npm install crypto-js

npm install --save-dev @types/crypto-js

# yarn
yarn add crypto-js

yarn add @types/crypto-js

sha256


import cryptoJS from 'crypto-js';

const password = 'test';

// object
const hash = cryptoJS.SHA256(password);

// string
hash.toString(cryptoJS.enc.Hex);

crypto-js ์•”ํ˜ธํ™” ๋ฐฉ์‹