{"id":22018140,"url":"https://github.com/rvflash/cipher","last_synced_at":"2025-03-23T09:27:39.295Z","repository":{"id":146848144,"uuid":"142754666","full_name":"rvflash/cipher","owner":"rvflash","description":"Cipher implements some encryption techniques","archived":false,"fork":false,"pushed_at":"2018-07-29T14:15:20.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T16:16:29.985Z","etag":null,"topics":["caesar-cipher","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","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/rvflash.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-29T11:19:58.000Z","updated_at":"2018-07-29T14:15:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"ce47b570-22f9-4f10-9dd2-e79107c64cd9","html_url":"https://github.com/rvflash/cipher","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvflash%2Fcipher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvflash%2Fcipher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvflash%2Fcipher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvflash%2Fcipher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rvflash","download_url":"https://codeload.github.com/rvflash/cipher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245081348,"owners_count":20557815,"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":["caesar-cipher","golang"],"created_at":"2024-11-30T05:10:07.530Z","updated_at":"2025-03-23T09:27:39.253Z","avatar_url":"https://github.com/rvflash.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cipher\n\n[![Build Status](https://img.shields.io/travis/rvflash/cipher.svg)](https://travis-ci.org/rvflash/cipher)\n[![Code Coverage](https://img.shields.io/codecov/c/github/rvflash/cipher.svg)](http://codecov.io/github/rvflash/cipher?branch=master)\n\nCiphers is a just for fun project, created to provide some encryption methods not implemented in the standard crypto/cipher package. \nFor now, only the [Caesar cipher](https://github.com/rvflash/cipher/tree/master/caesar) is available as Go package. \n\n## Installation\n\n```bash\n$ go get github.com/rvflash/cipher\n```\n\n## Quick start\n\nIf you just need a Go package to play with the Caesar code, see the example bellow :  \n\n```go\nimport (\n\t\"fmt\"\n\t\"github.com/rvflash/cipher/caesar\"\n)\n// ...\nr := strings.NewReader(\"Hello World!\")\nb, _ := caesar.ROT13.Encrypt(r)\nfmt.Printf(\"%s\", b)\n// output: Uryyb Jbeyq!\n```\n\nAs you can see, you can directly use the most famous version of the Caesar cipher, the ROT13 (rotates by 13 places).\n\n\u003e In addiction of the `caesar.ROT13`, you can create your own Caesar cipher with the `caesar.Classic` method.\n\u003e It takes as first parameter the number of letter to use as key.\n\u003e Finally, the `caesar.New` method uses the same algorithm but don't limit the code to the letters of the alphabet.\n\u003e It uses all printable ASCII characters.\n\nIf you just want to play with it in your browser, you can start the HTTP server on https://localhost:4433.\n\n```bash\n$ cd $GOPATH/github.com/rvflash/cipher/cmd/cipher\n$ go build \u0026\u0026 ./cipher\n```\n\n\n## Caesar cipher\n\nIn cryptography, a Caesar cipher is one of the simplest encryption techniques.\nIt 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.\n\nSee the [documentation](https://godoc.org/github.com/rvflash/cipher/caesar) for more details about the interface.\n\n\n### ROT13\n\nIt's the most known version of letter substitution cipher. It replaces a letter with the 13th letter after it.\nThe variable `caesar.ROT13` gives you a direct access tu use it.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvflash%2Fcipher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frvflash%2Fcipher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvflash%2Fcipher/lists"}