{"id":13470664,"url":"https://github.com/travist/jsencrypt","last_synced_at":"2025-09-23T10:09:53.304Z","repository":{"id":37550148,"uuid":"8227684","full_name":"travist/jsencrypt","owner":"travist","description":"A tiny (18.5 kB gzip), zero-dependency, Javascript library to perform OpenSSL RSA Encryption, Decryption, and Key Generation.","archived":false,"fork":false,"pushed_at":"2025-08-13T03:15:38.000Z","size":2408,"stargazers_count":6770,"open_issues_count":138,"forks_count":2020,"subscribers_count":176,"default_branch":"master","last_synced_at":"2025-09-08T17:33:38.692Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://travistidwell.com/jsencrypt","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/travist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"travist","patreon":"codegnome"}},"created_at":"2013-02-15T22:39:49.000Z","updated_at":"2025-09-08T08:27:39.000Z","dependencies_parsed_at":"2023-02-08T13:45:50.518Z","dependency_job_id":"cf063b16-3371-4c75-a02e-725fa22aed3a","html_url":"https://github.com/travist/jsencrypt","commit_stats":{"total_commits":189,"total_committers":39,"mean_commits":4.846153846153846,"dds":0.8201058201058201,"last_synced_commit":"24e69d8b197b3322d17500af858f3e44e4276f1d"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/travist/jsencrypt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travist%2Fjsencrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travist%2Fjsencrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travist%2Fjsencrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travist%2Fjsencrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/travist","download_url":"https://codeload.github.com/travist/jsencrypt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travist%2Fjsencrypt/sbom","scorecard":{"id":897494,"data":{"date":"2025-08-11","repo":{"name":"github.com/travist/jsencrypt","commit":"a0ae319f4011d90ec7dc15192c0f7be1f3946ee0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.8,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 12 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":2,"reason":"Found 7/26 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: docs/security.md:1","Info: Found linked content: docs/security.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: docs/security.md:1","Info: Found text in security policy: docs/security.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"11 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T14:17:13.618Z","repository_id":37550148,"created_at":"2025-08-24T14:17:13.618Z","updated_at":"2025-08-24T14:17:13.618Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274526403,"owners_count":25302302,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-10T02:00:12.551Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T16:00:33.464Z","updated_at":"2025-09-23T10:09:53.295Z","avatar_url":"https://github.com/travist.png","language":"JavaScript","readme":"# JSEncrypt\n\nA tiny (18.5kB gzip), zero dependency, JavaScript library to perform both synchronous and asynchronous OpenSSL RSA Encryption, Decryption, and Key Generation in both the Browser and Node.js.\n\n[![npm version](https://badge.fury.io/js/jsencrypt.svg)](https://www.npmjs.com/package/jsencrypt)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n**🌐 Documentation:** [https://travistidwell.com/jsencrypt](https://travistidwell.com/jsencrypt)  \n**📦 NPM Package:** [https://www.npmjs.com/package/jsencrypt](https://www.npmjs.com/package/jsencrypt)  \n**🚀 Interactive Demo:** [https://travistidwell.com/jsencrypt/demo](https://travistidwell.com/jsencrypt/demo)\n\n## Why JSEncrypt?\n\nWhen choosing an RSA encryption library for JavaScript, you need a solution that's reliable, secure, and fits seamlessly into your development workflow. JSEncrypt delivers on all fronts.\n\n**JSEncrypt stands out** by providing enterprise-grade RSA encryption capabilities without the complexity and security concerns that come with heavy dependencies.\n\n### Key Benefits\n\n- **⚡ Tiny \u0026 Fast** - Just 18.5 kB gzipped - minimal impact on your bundle size.\n- **🌐 Universal Compatibility** - Works seamlessly in both Node.js server environments and browser applications\n- **📦 Zero Dependencies** - No external dependencies means better security posture and reduced bundle size\n- **⚡ Flexible Execution** - Supports both synchronous and asynchronous JavaScript patterns\n- **🔒 OpenSSL Compatible** - Direct support for PEM-formatted keys generated with OpenSSL\n- **🛡️ Proven Security** - Built on Tom Wu's battle-tested jsbn library without modifying core algorithms\n- **🚀 Production Ready** - Lightweight, well-tested, and used by thousands of developers worldwide\n\n## Installation\n\n### Using npm\n\n```bash\nnpm install jsencrypt\n```\n\n### Using yarn\n\n```bash\nyarn add jsencrypt\n```\n\n### Using CDN\n\nInclude JSEncrypt directly in your HTML:\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/jsencrypt@latest/bin/jsencrypt.min.js\"\u003e\u003c/script\u003e\n```\n\n## Basic Usage\n\n### 1. Import the Library\n\n#### ES6 Modules\n```javascript\nimport { JSEncrypt } from 'jsencrypt';\n```\n\n#### CommonJS\n```javascript\nconst JSEncrypt = require('jsencrypt');\n```\n\n#### Browser Global\n```javascript\n// JSEncrypt is available globally when using CDN\nconst crypt = new JSEncrypt();\n```\n\n### 2. Create RSA Keys\n\nFor the highest security, you'll need RSA key pairs to use JSEncrypt. Generate them using OpenSSL:\n\n```bash\n# Generate a 2048-bit private key\nopenssl genrsa -out private.pem 2048\n\n# Extract the public key\nopenssl rsa -pubout -in private.pem -out public.pem\n```\n\n### 3. Basic Encryption/Decryption\n\n```javascript\n// Create JSEncrypt instance\nconst crypt = new JSEncrypt();\n\n// Set your private key (for decryption)\ncrypt.setPrivateKey(`-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEA4f5wg5l2hKsTeNem/V41fGnJm6gOdrj8ym3rFkEjWT9u\nU38KPhX7l3YXkLMfJj8sE3PUi0EaL6rN6rOUY8dq1fQhPhT1wfI6V8KQtQnq\n1FKnNgQCVmQpCxK7qFR7Z+9MRWoJrPb8lZMmT1ELkKL6FBfkp3H3WcTl+BF0\nXoZnLK0CfXfKzPJPm9jfKKE7dqnCsRiXYJbBwkNpQ5xo2lRKnNaH8GjPzJ4X\nTZ5J7G6hDpXN1F3YzWZNVQRzfDfLB+w9FDaZ5kFhRc2PgB1Y8dNOhgK7RFJF\nJDZhqBhSRnQ1YkLkQOnHq4Bz8l7YgRJkJHdIfTOO8l3YXkLMfJj8sE3PUi0E\nqL6r9OOCzGJnVgQCVmQpCxK7qFR7Z+9MRWoJrPb8lZMmT1ELkKL6FBfkp3H3\n...\n-----END RSA PRIVATE KEY-----`);\n\n// The public key is automatically derived from the private key\n// Or you can set it explicitly:\n// crypt.setPublicKey('-----BEGIN PUBLIC KEY-----...');\n\n// Encrypt data\nconst originalText = 'Hello, World!';\nconst encrypted = crypt.encrypt(originalText);\n\n// Decrypt data\nconst decrypted = crypt.decrypt(encrypted);\n\nconsole.log('Original:', originalText);\nconsole.log('Encrypted:', encrypted);\nconsole.log('Decrypted:', decrypted);\nconsole.log('Match:', originalText === decrypted); // true\n```\n\n## Key Concepts\n\n### Public vs Private Keys\n\n- **Public Key**: Used for **encryption**. Safe to share publicly.\n- **Private Key**: Used for **decryption**. Keep this secret!\n\n```javascript\nconst crypt = new JSEncrypt();\n\n// For encryption only (using public key)\ncrypt.setPublicKey(publicKeyString);\nconst encrypted = crypt.encrypt('secret message');\n\n// For decryption (requires private key)\ncrypt.setPrivateKey(privateKeyString);  \nconst decrypted = crypt.decrypt(encrypted);\n```\n\n## Key Generation\n\nJSEncrypt supports two approaches for obtaining RSA keys: **OpenSSL generation (recommended)** and **JavaScript generation (convenient but less secure)**.\n\n### Option 1: OpenSSL Key Generation (Recommended)\n\nFor production applications and maximum security, generate keys using OpenSSL:\n\n```bash\n# Generate a 2048-bit private key (recommended minimum)\nopenssl genrsa -out private.pem 2048\n\n# Generate a 4096-bit private key (higher security)\nopenssl genrsa -out private.pem 4096\n\n# Extract the public key\nopenssl rsa -pubout -in private.pem -out public.pem\n\n# View the private key\ncat private.pem\n\n# View the public key  \ncat public.pem\n```\n\n**Why OpenSSL is more secure:**\n- Uses cryptographically secure random number generators\n- Better entropy sources from the operating system\n- Optimized and audited implementations\n- Industry standard for key generation\n\n### Option 2: JavaScript Key Generation (Convenience)\n\nJSEncrypt can generate keys directly in JavaScript, which is convenient for testing, demos, or non-critical applications:\n\n```javascript\n// Create JSEncrypt instance\nconst crypt = new JSEncrypt();\n\n// Generate a new key pair (default: 1024-bit)\nconst privateKey = crypt.getPrivateKey();\nconst publicKey = crypt.getPublicKey();\n\nconsole.log('Private Key:', privateKey);\nconsole.log('Public Key:', publicKey);\n\n// You can also specify key size (512, 1024, 2048, 4096)\nconst crypt2048 = new JSEncrypt({ default_key_size: 2048 });\nconst strongerPrivateKey = crypt2048.getPrivateKey();\nconst strongerPublicKey = crypt2048.getPublicKey();\n```\n\n#### Asynchronous Key Generation\n\nFor better performance (especially with larger keys), use async generation:\n\n```javascript\n// Asynchronous key generation (recommended for larger keys)\nconst crypt = new JSEncrypt({ default_key_size: 2048 });\n\ncrypt.getKey(() =\u003e {\n    const privateKey = crypt.getPrivateKey();\n    const publicKey = crypt.getPublicKey();\n    \n    console.log('Generated private key:', privateKey);\n    console.log('Generated public key:', publicKey);\n    \n    // Now you can use the keys\n    const encrypted = crypt.encrypt('Hello, World!');\n    const decrypted = crypt.decrypt(encrypted);\n});\n```\n\n#### Different Key Sizes\n\n```javascript\n// 512-bit (fast but less secure - only for testing)\nconst crypt512 = new JSEncrypt({ default_key_size: 512 });\n\n// 1024-bit (default - basic security)\nconst crypt1024 = new JSEncrypt({ default_key_size: 1024 });\n\n// 2048-bit (recommended minimum for production)\nconst crypt2048 = new JSEncrypt({ default_key_size: 2048 });\n\n// 4096-bit (high security but slower)\nconst crypt4096 = new JSEncrypt({ default_key_size: 4096 });\n```\n\n**⚠️ Security Note:** JavaScript key generation uses browser/Node.js random number generators which may have less entropy than dedicated cryptographic tools. For production applications handling sensitive data, prefer OpenSSL-generated keys.\n\n**💡 Use Cases for JavaScript Generation:**\n- Rapid prototyping and testing\n- Client-side demos and examples  \n- Educational purposes\n- Non-critical applications\n- When OpenSSL is not available\n\n## Advanced Features\n\n### Digital Signatures\n\n```javascript\n// Sign with the private key\nconst sign = new JSEncrypt();\nsign.setPrivateKey(privateKey);\nconst signature = sign.signSha256(data);\n\n// Verify with the public key\nconst verify = new JSEncrypt();\nverify.setPublicKey(publicKey);\nconst verified = verify.verifySha256(data, signature);\n```\n\n### OAEP Padding\n\n```javascript\n// Encrypt with OAEP padding and SHA-256 hash\nconst encrypt = new JSEncrypt();\nencrypt.setPublicKey(publicKey);\nconst encrypted = encrypt.encryptOAEP(data);\n```\n\n### Supported Hash Functions\n\nWhen using signatures, you can specify the hash type:\n- `md2`, `md5`, `sha1`, `sha224`, `sha256`, `sha384`, `sha512`, `ripemd160`\n\n## Browser Usage\n\nFor direct browser usage without a build system:\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n    \u003ctitle\u003eJSEncrypt Example\u003c/title\u003e\n    \u003cscript src=\"https://cdn.jsdelivr.net/npm/jsencrypt/bin/jsencrypt.min.js\"\u003e\u003c/script\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003cscript\u003e\n        const crypt = new JSEncrypt();\n        crypt.setPrivateKey(crypt.getPrivateKey());\n        \n        // Use the library\n        const encrypted = crypt.encrypt('Hello World!');\n        const decrypted = crypt.decrypt(encrypted);\n        \n        console.log('Original:', 'Hello World!');\n        console.log('Encrypted:', encrypted);\n        console.log('Decrypted:', decrypted);\n    \u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Node.js Usage\n\nFor use within Node.js, you can use the following.\n\n```js\nconst JSEncrypt = require('jsencrypt');\nconst crypt = new JSEncrypt();\ncrypt.setPrivateKey(crypt.getPrivateKey());\n\n// Use the library\nconst encrypted = crypt.encrypt('Hello World!');\nconst decrypted = crypt.decrypt(encrypted);\n\nconsole.log('Original:', 'Hello World!');\nconsole.log('Encrypted:', encrypted);\nconsole.log('Decrypted:', decrypted);\n```\n\n## Development \u0026 Testing\n\n### Running Tests\n\n```bash\n# Run all tests (Node.js + Browser)\nnpm test\n\n# Run only Node.js tests  \nnpm run test:mocha\n\n# Run only example validation tests\nnpm run test:examples\n\n# Build the library\nnpm run build\n\n# Build test bundle for browser testing\nnpm run build:test\n```\n\n### Browser Tests\n\nVisit the test page to run browser-based tests:\n- **Local development:** `http://localhost:4000/test/` (when running Jekyll)\n- **Online:** [https://travistidwell.com/jsencrypt/test/](https://travistidwell.com/jsencrypt/test/)\n\n## Documentation\n\nFor comprehensive documentation, examples, and API reference:\n\n**📖 [Visit the Documentation Site](https://travistidwell.com/jsencrypt)**\n\n- [Getting Started Guide](https://travistidwell.com/jsencrypt/docs/getting-started)\n- [API Reference](https://travistidwell.com/jsencrypt/docs/api)\n- [Examples \u0026 Use Cases](https://travistidwell.com/jsencrypt/docs/examples)\n- [Interactive Demo](https://travistidwell.com/jsencrypt/demo)\n\n## Technical Background\n\nThis library provides a simple JavaScript wrapper around Tom Wu's excellent [jsbn library](http://www-cs-students.stanford.edu/~tjw/jsbn/). The core cryptographic functions remain untouched, ensuring security and reliability.\n\n### Key Format Support\n\nJSEncrypt works with standard PEM-formatted RSA keys:\n\n**Private Key (PKCS#1):**\n```\n-----BEGIN RSA PRIVATE KEY-----\nMIICXgIBAAKBgQDHikastc8+I81zCg/qWW8dMr8mqvXQ3qbPAmu0RjxoZVI47tvs...\n-----END RSA PRIVATE KEY-----\n```\n\n**Public Key (PKCS#8):**\n```\n-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDlOJu6TyygqxfWT7eLtGDwajtN...\n-----END PUBLIC KEY-----\n```\n\n### RSA Variable Mappings\n\nThe library translates PEM key components to jsbn library variables:\n\n| PEM Component | jsbn Variable |\n|---------------|---------------|\n| modulus | n |\n| public exponent | e |\n| private exponent | d |\n| prime1 | p |\n| prime2 | q |\n| exponent1 | dmp1 |\n| exponent2 | dmq1 |\n| coefficient | coeff |\n\n## Contributing\n\nContributions are welcome! Please read our contributing guidelines and ensure all tests pass before submitting a pull request.\n\n```bash\n# Clone the repository\ngit clone https://github.com/travist/jsencrypt.git\ncd jsencrypt\n\n# Install dependencies\nnpm install\n\n# Run tests\nnpm test\n\n# Build the project\nnpm run build\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.txt](LICENSE.txt) file for details.\n\n## Resources\n\n- **Tom Wu's jsbn library:** http://www-cs-students.stanford.edu/~tjw/jsbn/\n- **RSA Key Breakdown:** http://etherhack.co.uk/asymmetric/docs/rsa_key_breakdown.html\n- **RSA Algorithm Details:** http://www.di-mgt.com.au/rsa_alg.html\n- **ASN.1 Key Structures:** https://polarssl.org/kb/cryptography/asn1-key-structures-in-der-and-pem\n\n---\n\n**Made with ❤️ by [Travis Tidwell](https://github.com/travist)**\n\n","funding_links":["https://github.com/sponsors/travist","https://patreon.com/codegnome"],"categories":["JavaScript","Repository","底层相关","Frameworks and Libs"],"sub_categories":["Crypto","JavaScript"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftravist%2Fjsencrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftravist%2Fjsencrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftravist%2Fjsencrypt/lists"}