Phpseclib Crypt_RSA: Why is public key used for decryption?

If you encrypt with the private key anyone can decrypt it but only with your public key, thus verifying that it came from you. Of course, if you were doing that you'd probably be better off just signing your message. The PKCS#1 standards does not define signing and encrypting identically and, indeed, the security proof for a signed message is stronger than the security proof for an encrypted message.

If you encrypt with the private key anyone can decrypt it but only with your public key, thus verifying that it came from you. Of course, if you were doing that you'd probably be better off just signing your message. The PKCS#1 standards does not define signing and encrypting identically and, indeed, the security proof for a signed message is stronger than the security proof for an encrypted message.W.r.t.

The phpseclib documentation... it was probably just an oversight or a snafu on the developers part. Maybe they realized the mistake but didn't want to fix it immediately as it wasn't a code issue and now just keep on forgetting about it? I dunno... I know I can do that.

I take more pride in my own code than I do in the documentation.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions