{"id":19262121,"url":"https://github.com/julesss-coder/caesar-cipher","last_synced_at":"2026-06-14T18:32:27.212Z","repository":{"id":199347023,"uuid":"312270488","full_name":"julesss-coder/caesar-cipher","owner":"julesss-coder","description":"Caesar cipher in JavaScript (my solution to a task on The Odin Project)","archived":false,"fork":false,"pushed_at":"2020-11-12T12:41:08.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-05T10:22:06.758Z","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/julesss-coder.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-12T12:29:58.000Z","updated_at":"2020-11-12T12:41:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"5d5f43bb-01c6-49be-a9ed-179939b0a605","html_url":"https://github.com/julesss-coder/caesar-cipher","commit_stats":null,"previous_names":["julesss-coder/caesar-cipher"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julesss-coder%2Fcaesar-cipher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julesss-coder%2Fcaesar-cipher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julesss-coder%2Fcaesar-cipher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julesss-coder%2Fcaesar-cipher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/julesss-coder","download_url":"https://codeload.github.com/julesss-coder/caesar-cipher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240364295,"owners_count":19789756,"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":[],"created_at":"2024-11-09T19:29:45.669Z","updated_at":"2026-06-14T18:32:22.167Z","avatar_url":"https://github.com/julesss-coder.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Julesss-coder's solution to \"caesar cipher\"\n\nThis is my solution to an exercise in test-driven development by The Odin Project (https://github.com/TheOdinProject/javascript-exercises/tree/master/caesar).\nExercise: see below.\n\n# Exercise XX - caesar cipher\n\nImplement the legendary caesar cipher:\n\n\u003e In cryptography, a Caesar cipher, also known as Caesar's cipher, the shift cipher, Caesar's code or Caesar shift, is one of the simplest and most widely known encryption techniques. It is a type of substitution cipher in which each letter in the plaintext is replaced by a letter some fixed number of positions down the alphabet. For example, with a left shift of 3, D would be replaced by A, E would become B, and so on. The method is named after Julius Caesar, who used it in his private correspondence.\n\nHint: You may need to convert letters to their unicode values. Be sure to read the documentation!\n\nwrite a function that takes a string to be encoded and a shift factor and then returns the encoded string:\n\n```javascript\ncaesar('A', 1) // simply shifts the letter by 1: returns 'B'\n```\n\nthe cipher should retain capitalization:\n```javascript\ncaesar('Hey', 5) // returns 'Mjd;\n```\n\nshould _not_ shift punctuation:\n```javascript\ncaesar('Hello, World!', 5) //returns 'Mjqqt, Btwqi!'\n```\n\nthe shift should wrap around the alphabet:\n```javascript\ncaesar('Z', 1) // returns 'A'\n```\n\nnegative numbers should work as well:\n```javascript\ncaesar('Mjqqt, Btwqi!', -5) // returns 'Hello, World!'\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulesss-coder%2Fcaesar-cipher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulesss-coder%2Fcaesar-cipher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulesss-coder%2Fcaesar-cipher/lists"}