Baidu said to load the openssl module, phpinfo (); shows the Code as follows: $ eRsa: encrypt (& #039; hello & #039;, $ publickey); echo $ e; echoRsa: decrypt ($ e, $ privatekey); no error is reported during runtime, and no output is displayed. The method in source code is as follows: publicstatic...
Baidu said it was going to load the openssl module, phpinfo (); Display
The Code is as follows:
$ E = Rsa: encrypt ('hello', $ publickey );
Echo $ e;
Echo Rsa: decrypt ($ e, $ privatekey );
No error or output is reported during running;
The method in the source code is as follows,
Public static function decrypt ($ message, $ private_key, $ modulus, $ keylength)
What does modulus and keylength mean here?
Reply content:
Baidu said it was going to load the openssl module, phpinfo (); Display
The Code is as follows:
$ E = Rsa: encrypt ('hello', $ publickey );
Echo $ e;
Echo Rsa: decrypt ($ e, $ privatekey );
No error or output is reported during running;
The method in the source code is as follows,
Public static function decrypt ($ message, $ private_key, $ modulus, $ keylength)
What does modulus and keylength mean here?
My current class