# rsa_jsencrypt **Repository Path**: rongyu1989/rsa_jsencrypt ## Basic Information - **Project Name**: rsa_jsencrypt - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 2 - **Created**: 2021-10-20 - **Last Updated**: 2021-10-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # rsa jsencrypt #### 使用准备 找到rsa.js文件里最下方的公钥参数,把这个参数修改成自己的。 #### 示例代码 可以使用python运行,实现jsencrypt加密。 ```python import urllib.parse import execjs js_file = './rsa.js' with open(js_file, 'r', encoding='utf-8') as f: js_code = f.read() js = execjs.compile(js_code) password = urllib.parse.quote(js.call('getRsaResult', 'xxxxxx')) print('password:', password) ```