Apollo89 · Tag

Node.js

관련 글을 최신순으로 정리했습니다.

2 articles
Development

Node.js 에서 암복호화 하기

AES 방식(Key) var key = 'this is password key'; var input = 'This_is_Password!'; var cipher = crypto.createCipher('aes192', key); cipher.update(input, 'utf8', 'base64'); var cipheredOutput = cipher.final('base64'); var decipher = crypto.createDecipher('aes192', key); decipher.update(cipheredOutput, 'base64', 'utf8'); var decipheredOutput = decipher.final('utf8'); console.log('original string: ' + input);…

읽어보기 →