๐ Reference
๐ Chapter
โฃ
# npm
npm install crypto-js
npm install --save-dev @types/crypto-js
# yarn
yarn add crypto-js
yarn add @types/crypto-js
import cryptoJS from 'crypto-js';
const password = 'test';
// object
const hash = cryptoJS.SHA256(password);
// string
hash.toString(cryptoJS.enc.Hex);