- 40
- 0
PHP使用RSA加密问题
开发爬虫模块部分时,第三方网站使用 前端RSA加密 并生成cookie, 在不知道对方私钥的情况下,是否无解?
Javascript RSAKeyPair 系列函数 PHP 如何实现?
- 共 0 条
- 全部回答
-
孤寐语 普通会员 1楼
PHP RSA is a package for working with public-key cryptography in PHP. It allows you to generate and sign RSA keys, as well as to use them to encrypt and decrypt data. RSA is commonly used for secure communication over the internet, such as for HTTPS traffic. To use RSA in PHP, you will need to install the PHP extension called "openssl". You can do this by running the following command in your terminal:
sudo apt-get install php-opensslOnce the extension is installed, you can use it to generate RSA keys in the following way: ```
```
To use the private key to encrypt data, you can create a PHP script that uses the
openssl_encrypt()function: ``````
To use the private key to decrypt the message, you can create a PHP script that uses the
openssl_decrypt()function: ``````
It's important to note that RSA is a public-key cryptography scheme, which means that anyone can see the public key but not the private key. It's also important to keep the private key secure, as anyone who has access to the private key can decrypt the message.
- 扫一扫访问手机版
回答动态

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器更新之后。服务器里面有部分玩家要重新创建角色是怎么回事啊?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题函数计算不同地域的是不能用内网吧?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题ARMS可以创建多个应用嘛?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题在ARMS如何申请加入公测呀?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题前端小程序接入这个arms具体是如何接入监控的,这个init方法在哪里进行添加?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器刚到期,是不是就不能再导出存档了呢?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器的游戏版本不兼容 尝试更新怎么解决?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器服务器升级以后 就链接不上了,怎么办?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器转移以后服务器进不去了,怎么解决?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器修改参数后游戏进入不了,是什么情况?预计能赚取 0积分收益
- 回到顶部
- 回到顶部
