{"id":16656586,"url":"https://github.com/sheharyarn/cipherjs","last_synced_at":"2025-07-19T04:35:47.298Z","repository":{"id":51707007,"uuid":"81792713","full_name":"sheharyarn/cipherjs","owner":"sheharyarn","description":"Javascript Implementation of simple Ciphers","archived":false,"fork":false,"pushed_at":"2022-12-06T20:38:41.000Z","size":643,"stargazers_count":12,"open_issues_count":13,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-12T01:04:42.227Z","etag":null,"topics":["ciphers","cli","cryptography","decryption","encryption","hacktoberfest","javascript","npm-package"],"latest_commit_sha":null,"homepage":"","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/sheharyarn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-13T06:32:08.000Z","updated_at":"2024-05-06T00:32:36.000Z","dependencies_parsed_at":"2023-01-24T02:00:16.138Z","dependency_job_id":null,"html_url":"https://github.com/sheharyarn/cipherjs","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/sheharyarn/cipherjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheharyarn%2Fcipherjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheharyarn%2Fcipherjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheharyarn%2Fcipherjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheharyarn%2Fcipherjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sheharyarn","download_url":"https://codeload.github.com/sheharyarn/cipherjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheharyarn%2Fcipherjs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265889138,"owners_count":23844539,"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":["ciphers","cli","cryptography","decryption","encryption","hacktoberfest","javascript","npm-package"],"created_at":"2024-10-12T09:57:53.843Z","updated_at":"2025-07-19T04:35:47.273Z","avatar_url":"https://github.com/sheharyarn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[\u003cimg src='media/logo.png' width='300px' /\u003e][github-repo]\n=========================================================\n\n[![Build Status][shield-travis]][travis]\n[![Coverage Status][shield-coveralls]][coveralls]\n[![Downloads][shield-downloads]][npm]\n[![Version][shield-version]][npm]\n\n\n\u003e Javascript implementation of simple Ciphers\n\n\u003cbr/\u003e\n\n![CipherJS CLI Demo][cli-demo]\n\n\n\n\n## Installation\n\nInstall the package using `yarn`:\n\n```bash\n$ yarn add cipherjs\n```\n\nor `npm`:\n\n```bash\n$ npm install --save cipherjs\n```\n\n\u003cbr/\u003e\n\n\n\n\n## Usage\n\nStart by `require`-ing the module:\n\n```js\nconst CipherJS = require('cipherjs');\n```\n\nIt returns an `Object` of available ciphers, each with their own `encrypt` and\n`decrypt` methods:\n\n```js\nCipherJS.Vigenere.encrypt('MY SECRET MESSAGE', 'MY SECRET KEY')\n// YW KIEIIM WIQEYYI\n```\n\n\u003cbr/\u003e\n\n\n\n\n## Command-line App\n\n`cipherjs` comes with a CLI app that lets you encrypt or decrypt data interactively.\nTo use it, install the package globally:\n\n```bash\n$ npm install -g cipherjs\n```\n\nand just execute `cipherjs` in your terminal:\n\n```bash\n$ cipherjs\n```\n\n\u003cbr/\u003e\n\n\n\n\n## Ciphers\n\nAll Ciphers have one `encrypt` and `decrypt` method, with the first argument as the\nciphertext / plaintext.\n\n\n### Affine Cipher\n\nTakes two numeric keys, the first of which should be a `coprime` with `26` and the\nsecond should be between `0-25`:\n\n```js\nCipherJS.Affine.encrypt('AFFINE CIPHER', 5, 23)\n// 'XWWLKR HLUGRE'\n\nCipherJS.Affine.decrypt('XWWLKR HLUGRE', 5, 23)\n// 'AFFINE CIPHER'\n```\n\n\n### Caesar Cipher\n\nTakes one numeric key along with the plaintext / ciphertext:\n\n```js\nCipherJS.Caesar.encrypt('CAESAR CIPHER', 13)\n// 'PNRFNE PVCURE'\n\nCipherJS.Caesar.decrypt('PNRFNE PVCURE', 13)\n// 'CAESAR CIPHER'\n```\n\n\n### Simple Substitution Cipher\n\nTakes only a string key for encoding and decoding:\n\n```js\nCipherJS.Substitution.encrypt('SIMPLE SUBSTITUTION CIPHER', 'SECRET KEY')\n// 'OBHLGT OQEOPBPQPBJI CBLATN'\n\nCipherJS.Substitution.decrypt('OBHLGT OQEOPBPQPBJI CBLATN', 'SECRET KEY')\n// 'SIMPLE SUBSTITUTION CIPHER'\n```\n\n\n### Vigenere Cipher\n\nTakes only a string key for encoding and decoding:\n\n```js\nCipherJS.Vigenere.encrypt('VIGENERE CIPHER', 'ANOTHER SECRET KEY')\n// 'VVUXUIIW GKGLXB'\n\nCipherJS.Vigenere.decrypt('VVUXUIIW GKGLXB', 'ANOTHER SECRET KEY')\n// 'VIGENERE CIPHER'\n```\n\n\u003cbr/\u003e\n\n\n\n\n## Contributing\n\n - [Fork][github-fork], Enhance, Send PR\n - Lock issues with any bugs or feature requests\n - Implement something from Roadmap\n - Spread the word\n\n\u003cbr/\u003e\n\n\n\n\n## License\n\nThis package is available as open source under the terms of the [MIT License][github-license].\n\n\u003cbr/\u003e\n\n\n\n\n  [logo]:             media/logo.png\n  [cli-demo]:         media/cli.gif\n\n  [npm]:              https://www.npmjs.com/package/cipherjs\n  [travis]:           https://travis-ci.org/sheharyarn/cipherjs\n  [coveralls]:        https://coveralls.io/github/sheharyarn/cipherjs\n\n  [github-repo]:      https://github.com/sheharyarn/cipherjs\n  [github-fork]:      https://github.com/sheharyarn/cipherjs/fork\n  [github-license]:   https://github.com/sheharyarn/cipherjs/blob/master/LICENSE\n\n  [shield-travis]:    https://img.shields.io/travis/sheharyarn/cipherjs.svg\n  [shield-coveralls]: https://img.shields.io/coveralls/sheharyarn/cipherjs.svg\n  [shield-downloads]: https://img.shields.io/npm/dt/cipherjs.svg\n  [shield-version]:   https://img.shields.io/npm/v/cipherjs.svg\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheharyarn%2Fcipherjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsheharyarn%2Fcipherjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheharyarn%2Fcipherjs/lists"}