openssl
OpenSSL์ ์ด์ฉํ ๋์นญํค ์ํธํ
1. ๋์นญํค ์์ฑ - DES ์๊ณ ๋ฆฌ์ฆ ์ฌ์ฉ openssl genrsa -des3 -out privatekey.pem 2. ์ํธํ - ๋น๊ณต๊ฐํค ์ฌ์ฉ openssl rsautl -encrypt -inkey privatekey.pem -in plaintext.txt -out ciphertext.txt 3. ๋ณตํธํ - ๋น๊ณต๊ฐํค ์ฌ์ฉ openssl rsautl -decrypt -inkey privatekey.pem -in ciphertext.txt -out plaintext_out.txt
OpenSSL์ ์ด์ฉํ ๋น๋์นญํค ์ํธํ
1. ๋น๋์นญํค ์์ฑ - RSA ์๊ณ ๋ฆฌ์ฆ ์ฌ์ฉ openssl genrsa -out privatekey.pem openssl rsa -in privatekey.pem -out publickey.pem -pubout 2. ์ํธํ - ๊ณต๊ฐํค ์ฌ์ฉ openssl rsautl -encrypt -inkey publickey.pem -in plaintext.txt -pubin -out ciphertext.txt 3. ๋ณตํธํ - ๋น๊ณต๊ฐํค ์ฌ์ฉ openssl rsautl -decrypt -inkey privatekey.pem -in ciphertext.txt -out plaintext_out.txt