RSA 썸네일형 리스트형 Node.js RSA Encryption, Decryption 1. Private Key & Public Key 생성 // generate rsa private.key openssl genrsa -out private.key 2048 // generate rsa public.key openssl rsa -in private.key -out public.key -pubout 2. Node.js crypto를 사용한 RSA Encryption, Decryption const crypto = require('crypto'); const rsaPrivKey = `-----BEGIN RSA PRIVATE KEY----- MIIEogIBAAKCAQEAxmtuWLe0poapjNrP7wyhsPgGCikuQRU7nI+0sj9QBexrt2Mt kVwhXdXevHXcR9sA90Bkrs.. 이전 1 다음