{"id":20046219,"url":"https://github.com/joshuaquek/quickencrypt","last_synced_at":"2025-05-05T09:31:29.762Z","repository":{"id":71797835,"uuid":"136741008","full_name":"joshuaquek/QuickEncrypt","owner":"joshuaquek","description":"Easily generate RSA Public-Private Keypairs and use them for secure asymmetric one-way encryption and decryption! - npmjs.com/package/quick-encrypt","archived":false,"fork":false,"pushed_at":"2021-10-21T06:02:53.000Z","size":111,"stargazers_count":18,"open_issues_count":9,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-30T13:46:05.218Z","etag":null,"topics":["asymmetric-cryptography","cryptography","decrypt","decryption","encrypt","encryption","javascript","nodejs","npm-package","rsa","security"],"latest_commit_sha":null,"homepage":"http://npmjs.com/package/quick-encrypt","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joshuaquek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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":["joshuaquek"]}},"created_at":"2018-06-09T16:43:55.000Z","updated_at":"2023-04-03T11:29:02.000Z","dependencies_parsed_at":"2023-03-11T11:24:21.710Z","dependency_job_id":null,"html_url":"https://github.com/joshuaquek/QuickEncrypt","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshuaquek%2FQuickEncrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshuaquek%2FQuickEncrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshuaquek%2FQuickEncrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshuaquek%2FQuickEncrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshuaquek","download_url":"https://codeload.github.com/joshuaquek/QuickEncrypt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224437401,"owners_count":17311006,"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","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":["asymmetric-cryptography","cryptography","decrypt","decryption","encrypt","encryption","javascript","nodejs","npm-package","rsa","security"],"created_at":"2024-11-13T11:22:03.503Z","updated_at":"2024-11-13T11:22:04.309Z","avatar_url":"https://github.com/joshuaquek.png","language":"JavaScript","funding_links":["https://github.com/sponsors/joshuaquek"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/joshuaquek/github-readme-assets/blob/master/quickencrypt/logo.png?raw=true\" height=\"150px\"\u003e\n  \u003ch2 align=\"center\"\u003e⚡️🔐 QuickEncrypt\u003c/h2\u003e\n  \u003cp align=\"center\"\u003eEasily generate RSA Public-Private Keypairs and use them for secure asymmetric one-way encryption and decryption!\u003cp\u003e\n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/joshuaquek/QuickEncrypt/graphs/commit-activity\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/Maintained%3F-yes-green.svg\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://travis-ci.org/joshuaquek/QuickEncrypt\"\u003e\n      \u003cimg src=\"https://travis-ci.org/joshuaquek/QuickEncrypt.svg?branch=master\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://coveralls.io/github/joshuaquek/QuickEncrypt?branch=master\"\u003e\n      \u003cimg src=\"https://coveralls.io/repos/github/joshuaquek/QuickEncrypt/badge.svg?branch=master\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://standardjs.com\"\u003e\n    \t\u003cimg src=\"https://img.shields.io/badge/code_style-standard-brightgreen.svg\"/\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://greenkeeper.io/\"\u003e\n    \t\u003cimg src=\"https://badges.greenkeeper.io/joshuaquek/QuickEncrypt.svg\"/\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://snyk.io/test/github/joshuaquek/QuickEncrypt?targetFile=package.json\"\u003e\u003cimg src=\"https://snyk.io/test/github/joshuaquek/QuickEncrypt/badge.svg?targetFile=package.json\" alt=\"Known Vulnerabilities\" data-canonical-src=\"https://snyk.io/test/github/joshuaquek/QuickEncrypt?targetFile=package.json\" style=\"max-width:100%;\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://opensource.org/licenses/mit-license.php\"\u003e\n\t    \u003cimg src=\"https://badges.frapsoft.com/os/mit/mit.svg?v=103\"\u003e\n    \u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n## Installation\n\n  `npm install quick-encrypt`\n\n## Usage\n\nAdd this to the js file that you are using it in:\n\n```javascript\n\nlet QuickEncrypt = require('quick-encrypt')\n\n```\n\nGenerating a RSA Public-Private Keypair:\n\n```javascript\n\nlet keys = QuickEncrypt.generate(2048) // Use either 2048 bits or 1024 bits.\n\nconsole.log(keys.public) // Public Key that has been generated.\n\nconsole.log(keys.private) // Private Key that has been generated.\n\n```\n\nEncrypting a secret payload:\n\n```javascript\n\nlet publicKey = keys.public // \" -----BEGIN RSA PUBLIC KEY-----\\nMIGJAoGBAIXlXZs+0FoIGBc5pjnZZxtvIzdDFtNi3SVi6vf2J...... \"\n\nlet encryptedText = QuickEncrypt.encrypt( 'This is some super top secret text!', publicKey)\n\nconsole.log(encryptedText) // Some encrypted text: \" 01c066e00c660aabadfc320621d9c3ac25ccf2e4c29e8bf4c...... \"\n\n```\n\nDecrypting a secret payload:\n\n```javascript\n\nlet privateKey = keys.private // \" -----BEGIN RSA PRIVATE KEY-----\\nMIICWwIBAAKBgQCF5V2bPtBaCBgXOaY52WcbbyM3QxbTYt0lYur..... \"\n\nlet decryptedText = QuickEncrypt.decrypt( 'The encrypted text string here!', privateKey)\n\nconsole.log(decryptedText) // The decrypted text: \"This is some super top secret text!\"\n\n```\n\nFull Example:\n\n```javascript\nconst QuickEncrypt = require('quick-encrypt')\n\n// --- RSA Keypair Generation ---\nlet keys = QuickEncrypt.generate(1024) // Use either 2048 bits or 1024 bits.\nconsole.log(keys) // Generated Public Key and Private Key pair\nlet publicKey = keys.public\nlet privateKey = keys.private\n\n// --- Encrypt using public key ---\nlet encryptedText = QuickEncrypt.encrypt( \"This is some super top secret text!\", publicKey )\nconsole.log(encryptedText) // This will print out the ENCRYPTED text, for example : \" 01c066e00c660aabadfc320621d9c3ac25ccf2e4c29e8bf4c...... \"\n\n// --- Decrypt using private key ---\nlet decryptedText = QuickEncrypt.decrypt( encryptedText, privateKey)\nconsole.log(decryptedText) // This will print out the DECRYPTED text, which is \" This is some super top secret text! \"\n\n```\n\n## Tests\n\n  `npm test`\n\n## Contributing\n\nIn lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshuaquek%2Fquickencrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshuaquek%2Fquickencrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshuaquek%2Fquickencrypt/lists"}