Does mcrypt support asymmetric encryption?

I want to use asymmetric header encryption in RESTful requests to authenticate the system sending the request: System A encrypts its name, timestamp, and service name using its public key in the System B request. System B then uses the System A public key to decrypt it. verifying the authenticity of the request.

1) Does php-mcrypt support this?

2) Has anyone rated this type of operation?

+5
source share
1 answer

No, mcrypt are just symmetric block ciphers.

PHP OpenSSL . , , openssl_sign openssl_verify.

( - , . - , , ).

, REST SSL, .

+11

All Articles