{"id":18542544,"url":"https://github.com/loneicewolf/compact-caesar-cipher","last_synced_at":"2026-01-23T07:06:26.128Z","repository":{"id":229469233,"uuid":"776825514","full_name":"loneicewolf/Compact-Caesar-Cipher","owner":"loneicewolf","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-23T14:17:26.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-17T08:43:32.128Z","etag":null,"topics":["ciphers","classical","classical-ciphers","crypto","cryptography","loneicewolf"],"latest_commit_sha":null,"homepage":"","language":null,"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/loneicewolf.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":"2024-03-24T14:56:54.000Z","updated_at":"2024-12-06T09:40:38.000Z","dependencies_parsed_at":"2024-12-26T05:23:34.464Z","dependency_job_id":"b9adeffb-2748-45fb-a3f8-c10b27986aab","html_url":"https://github.com/loneicewolf/Compact-Caesar-Cipher","commit_stats":null,"previous_names":["loneicewolf/compact-caesar-cipher"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/loneicewolf/Compact-Caesar-Cipher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loneicewolf%2FCompact-Caesar-Cipher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loneicewolf%2FCompact-Caesar-Cipher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loneicewolf%2FCompact-Caesar-Cipher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loneicewolf%2FCompact-Caesar-Cipher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loneicewolf","download_url":"https://codeload.github.com/loneicewolf/Compact-Caesar-Cipher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loneicewolf%2FCompact-Caesar-Cipher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28682293,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ciphers","classical","classical-ciphers","crypto","cryptography","loneicewolf"],"created_at":"2024-11-06T20:09:06.786Z","updated_at":"2026-01-23T07:06:26.112Z","avatar_url":"https://github.com/loneicewolf.png","language":null,"readme":"## $\\textcolor{red}{\\textsf{Compact Caesar Cipher}}$\n=======================================================================================\n\n## GUI Python3 (`Jupyter Notebook`)\n```py\nimport ipywidgets\ndef r_string(s,k): return(''.join([ chr(97+(ord(c)-97+k)%26) for c in s ]))\ndef F():\n    import ipywidgets as widgets\n    from ipywidgets import HBox, VBox\n    import numpy as np\n    import matplotlib.pyplot as plt\n    from IPython.display import display\n    %matplotlib inline\n    @widgets.interact\n    def f(BOX=widgets.Text(value='abcdefghijklmnopqrstuvwxyz', disabled=False),k=range(0,26)):\n        plain_text = BOX\n        print(r_string(BOX,k))\nF()\n```\n![image](https://github.com/loneicewolf/Compact-Caesar-Cipher/assets/68499986/a49fbf22-f3dc-4ba5-ac32-21b941ebddb1)\n![image](https://github.com/loneicewolf/Compact-Caesar-Cipher/assets/68499986/5002bf53-1a3f-4f93-ad13-9cb78992fe3b)\n- [implementation](https://github.com/loneicewolf/ciphers-python/blob/main/Caesar_Cipher.py)\n\n```\ndef r_string(s,k): return(''.join([ chr(97+(ord(c)-97+k)%26) for c in s ]))\n\n#https://github.com/jupyter-widgets/ipywidgets/issues/1775\nimport ipywidgets as widgets\n\nout = widgets.Output()\ndef on_value_change(change):\n    with out:\n        #print(\"here \",change['new'])\n        k=change['new']\n        print(r_string(\"abc\",k))\nslider = widgets.IntSlider(min=1, max=26, step=1, continuous_update=True)\nplay = widgets.Play(min=1, interval=50)\n\nslider.observe(on_value_change, 'value')\nwidgets.jslink((play, 'value'), (slider, 'value'))\nwidgets.VBox([play, slider, out])\n```\n\n=======================================================================================\n## JavaScript (js)\n- [implementation](http://stackoverflow.com/a/617685/987044)\n```js\nfunction rot(s,i) {return s.replace(/[a-zA-Z]/g, function (c) {  return String.fromCharCode((c \u003c= 'Z' ? 90 : 122) \u003e= (c = c.charCodeAt(0) + i) ? c : c - 26); });}\n```\n![image](https://github.com/loneicewolf/Compact-Caesar-Cipher/assets/68499986/b6a61be9-efd5-477b-aab7-0742c4f41d4e)\n\n=======================================================================================\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floneicewolf%2Fcompact-caesar-cipher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floneicewolf%2Fcompact-caesar-cipher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floneicewolf%2Fcompact-caesar-cipher/lists"}