Ok so i am VERY new to cryptography
I want to encrypt a string using RSA. i have found many examples but most of them generate their own public/private keys or they use some other key format like pem/crt etc
I have my own public and private key file in the format of .key
Public key -> http://pastebin.com/hPT9LRCT
Private key-> http://pastebin.com/UYgJp8K7
How do i encrypt a string (“hello world”) using my public key in php?
Could you show me an example or point me in the right direction?
thanks,
Vidhu
Try this (uses phpseclib, a pure PHP RSA implementation):