spin6lock / rsa_encrypt_and_decrypt_in_c

simple test of rsa encrypt and decrypt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

openssl command line tools can be used to generate private key and corresponding public key.

use this command to generate private key: openssl genrsa -out private_key 1024

use this command to generate public key: openssl rsa -in private_key -pubout -out public_key

The experiment shows that if the private key has been used to encrypted message, the crypted text would be the same, which is unsafe.

About

simple test of rsa encrypt and decrypt


Languages

Language:C 100.0%