# php-rsa **Repository Path**: olives_f/php-rsa ## Basic Information - **Project Name**: php-rsa - **Description**: php版rsa加密类,和java兼容,支持长密文 - **Primary Language**: PHP - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 4 - **Created**: 2020-09-15 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # php-rsa #### 项目介绍 php版rsa加密类,和java兼容,基于openssl,支持长密文 ### 使用示例 ``` $rsa = new Rsa(); $rsa->privateKey = '私钥字符串'; $rsa->encodeByPrivateKey('要加密的字符串'); $rsa->publicKey = '公钥字符串'; $rsa->decodeByPublicKey('要解密的字符串'); ```