{"id":15983879,"url":"https://github.com/zachflower/rotten-encryption","last_synced_at":"2025-08-27T15:09:57.258Z","repository":{"id":65480762,"uuid":"41975639","full_name":"zachflower/rotten-encryption","owner":"zachflower","description":"Node package to encode/decode text using a Caesar Shift (or ROT-n) cipher.","archived":false,"fork":false,"pushed_at":"2015-09-05T21:18:08.000Z","size":136,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-13T01:56:55.654Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zachflower.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-05T21:09:00.000Z","updated_at":"2019-08-18T16:51:08.000Z","dependencies_parsed_at":"2023-01-25T09:25:11.646Z","dependency_job_id":null,"html_url":"https://github.com/zachflower/rotten-encryption","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zachflower/rotten-encryption","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachflower%2Frotten-encryption","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachflower%2Frotten-encryption/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachflower%2Frotten-encryption/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachflower%2Frotten-encryption/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zachflower","download_url":"https://codeload.github.com/zachflower/rotten-encryption/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachflower%2Frotten-encryption/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272342901,"owners_count":24917730,"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-08-27T02:00:09.397Z","response_time":76,"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-10-08T02:02:41.951Z","updated_at":"2025-08-27T15:09:57.205Z","avatar_url":"https://github.com/zachflower.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rotten Encryption\r\n\r\nNode package to encode/decode text using a Caesar Shift (or ROT-n) cipher.\r\n\r\n## Background\r\n\r\nI recently discovered a renewed interest in basic encryption. In an effort\r\nto continue my node.js education, I decided to write a simple package to \r\nencrypt/decrypt strings using a ROT-n cipher (also commonly known as a [Caesar\r\nShift](https://en.wikipedia.org/wiki/Caesar_cipher)).\r\n\r\n![Caesar Shift](https://upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Caesar_cipher_left_shift_of_3.svg/320px-Caesar_cipher_left_shift_of_3.svg.png)\r\n\r\n**Note: This is an incredibly rudimentary cipher. Please do not use this package\r\nfor any serious encryption needs.**\r\n\r\n## Installation\r\n\r\n```\r\nnpm install rotten-encryption\r\n```\r\n\r\n## Usage\r\n\r\n```\r\nvar rotten = require('rotten-encryption');\r\n\r\n// number of steps to shift the resulting alphabet\r\nvar shift = 6;\r\n\r\n// encrypt an input string\r\nrotten.encrypt(shift, 'string to encrypt');\r\n\r\n// decrypt an input string\r\nrotten.decrypt(shift, 'string to decrypt');\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachflower%2Frotten-encryption","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzachflower%2Frotten-encryption","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachflower%2Frotten-encryption/lists"}