Crypto1 nodejs crypto aes256, md5 CryptoUtils.js import crypto from "crypto" ; /** * sha512 해싱 알고리즘 * @description 단방향 * @param {String} text 암호화할 평문. */ export const sha512 = (text) => crypto.createHash('sha512').update(text).digest('base64') let data = sha512("가나다라마바사") console.log(` sha512 : ${data}`) AES256Utils.js import crypto from "crypto" ; const aesKey = crypto.randomBytes(32) // 32 byte const iv = Buffer.from([0x00, 0x.. 2020. 8. 19. 이전 1 다음 728x90