ensargunesdogdu / crypt-examples

Encryption and decryption examples using private/public key pairs in different languages in a compatible way

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

generate keys with:

openssl genrsa -des3 -out private_key.pem 2056
openssl rsa -pubout -in private_key.pem -out public_key.pem

example key files provided, the passfrase of the private key is password

you can check signing running the sign_test scripts.

you can check encrypting and decrypting running the script with some input, for example:

echo "test message" | ./crypt.php | ./decrypt.rb
./java/encrypt.sh test | ./decrypt.rb

and you should get the plain message back.

About

Encryption and decryption examples using private/public key pairs in different languages in a compatible way


Languages

Language:Java 88.2%Language:PHP 6.5%Language:Ruby 4.8%Language:Shell 0.5%