예상질문 : AES
암호화async encryption(data) { const iv = randomBytes(16); const cryptoPassword = this.configService.get('CRYPTO_PASSWORD'); const key = (await promisify(scrypt)(cryptoPassword, 'salt', 32)) as Buffer; const cipher = createCipheriv('aes-256-ctr', key, iv); const encryptedata = Buffer.concat([cipher.update(data), cipher.final()]); const encryptedByConcatIvData = Buffer.concat([iv, ..