에러 질문
361
작성한 질문수 21
/usr/local/bin/node /Users/usang-in/WebstormProjects/nodejs-crawler/lecture2/cipher.js
internal/crypto/cipher.js:90
this[kHandle].init(cipher, credential, authTagLength);
^
Error: Unknown cipher
at Cipher.createCipherBase (internal/crypto/cipher.js:90:19)
at Cipher.createCipher (internal/crypto/cipher.js:114:20)
at new Cipher (internal/crypto/cipher.js:131:16)
at Object.createCipher (crypto.js:111:10)
at Object.deprecated (internal/util.js:67:15)
at Object.<anonymous> (/Users/usang-in/WebstormProjects/nodejs-crawler/lecture2/cipher.js:3:23)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:643:32)
at Function.Module._load (internal/modules/cjs/loader.js:556:12)
Process finished with exit code 1
복호화 할때 이런 에러가 뜨는데 왜 그럴까요..
답변 3
0
createCipher은 더이상 쓰면 안 되고 createCipherIV는 저희가 일반적으로 생각하는 암호화가 아닙니다. 나중에 암호화를 원하시면 npm에서 crypto-js 설치해서 하시는 게 더 편할겁니다.
0
코드는 제 책 그대로 하셨나요? createCipher과 createDecipher가 모두 deprecated되고 createCipherIV, createDecipherIV로 바뀌었습니다. 사실 더이상 crypto로 암호화하는 게 쉽지 않습니다.
실제 서비스에서도 cluster를 사용하나요?
1
313
2
캐싱에 관하여
0
279
3
salt를 실무에서 사용할때 항상 randomBytes로 만들어줘야 하나요?
0
347
1
게시물 올리기 오류
0
408
1
캐슁 이후 로그인창
0
266
1
kakao passport 질문있습니다.
0
493
3
global객체 공유 질문드립니다.
1
417
1
서버가 죽어버리네요
0
1047
8
포링키 문제..
0
235
2
커넥션 플래시 설치문제
0
216
2
익스프레스 제너레이터? 설치문제
0
2586
6
redis 질문입니다.
0
305
1
9장 세션을 DB에 저장시 리다이렉션 오류 발생
0
874
8
프레임워크 선택에 관하여 질문이 있습니다.
0
300
3
시퀄라이즈 질문입니다 ! !
0
588
1
리뉴얼 강의 12강 socket.io에서 req.session접근 관련 질문
0
922
6
oAuth 질문입니다.
0
356
3
GCP 질문입니다.
0
366
1
Passport 모듈 로그인 구현관련
0
720
6
카카오 로그인 관련 질문입니다!!
0
606
4
스스로 해보기 10-16 nunjuncks 질문있습니다
0
499
5
제로초님 HTTP 완벽가이드 추천해주신거 너무 잘 읽었습니다.
0
317
2
gif채팅방 nunjucks관련 질문입니다!
0
337
3
현영님 몽고db관련 질문입니다.
0
233
3





