{"id":26541574,"url":"https://github.com/peter-juhasz/science.cryptography.ciphers","last_synced_at":"2025-03-22T01:39:13.710Z","repository":{"id":25875528,"uuid":"29315725","full_name":"Peter-Juhasz/Science.Cryptography.Ciphers","owner":"Peter-Juhasz","description":"This project collects classic ciphers with high performance implementations.","archived":false,"fork":false,"pushed_at":"2024-12-25T08:48:24.000Z","size":432,"stargazers_count":7,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-25T09:26:43.091Z","etag":null,"topics":["allocation-free","ciphers","cryptography","performance","rot-13"],"latest_commit_sha":null,"homepage":"","language":"C#","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/Peter-Juhasz.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":"2015-01-15T20:05:21.000Z","updated_at":"2024-12-25T08:48:28.000Z","dependencies_parsed_at":"2022-09-12T01:11:26.354Z","dependency_job_id":null,"html_url":"https://github.com/Peter-Juhasz/Science.Cryptography.Ciphers","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/Peter-Juhasz%2FScience.Cryptography.Ciphers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter-Juhasz%2FScience.Cryptography.Ciphers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter-Juhasz%2FScience.Cryptography.Ciphers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter-Juhasz%2FScience.Cryptography.Ciphers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Peter-Juhasz","download_url":"https://codeload.github.com/Peter-Juhasz/Science.Cryptography.Ciphers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244894308,"owners_count":20527669,"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":["allocation-free","ciphers","cryptography","performance","rot-13"],"created_at":"2025-03-22T01:39:13.202Z","updated_at":"2025-03-22T01:39:13.703Z","avatar_url":"https://github.com/Peter-Juhasz.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Science.Cryptography.Ciphers v2 PREVIEW\n\n![NuGet](https://github.com/Peter-Juhasz/Science.Cryptography.Ciphers/actions/workflows/nuget.yml/badge.svg) ![CLI](https://github.com/Peter-Juhasz/Science.Cryptography.Ciphers/actions/workflows/cli.yml/badge.svg) [![NuGet](https://img.shields.io/nuget/v/Science.Cryptography.Ciphers.svg)](https://www.nuget.org/packages/Science.Cryptography.Ciphers/)\n\nA full featured toolkit for ancient and classic cipher methods, and their analysis tools, implemented in **.NET** using high performance memory management and SIMD hardware intrinsics.\n\nUse command-line interface:\n```sh\ncrypto encrypt shift -k 13 \"Hello world!\"\ncrypto solve \"Wkh txlfn eurzq ira mxpsv ryhu wkh odcb grj.\"\n```\n\nUse rich framework APIs:\n```ps\ndotnet add package Science.Cryptography.Ciphers --prerelease\ndotnet add package Science.Cryptography.Ciphers.Specialized --prerelease\ndotnet add package Science.Cryptography.Ciphers.Analysis --prerelease\n```\n\n## What's new in v2?\n- **New CLI app** for new way of usage\n- Ciphers and tools rewritten to **allocation free** operation, take advantage of **hardware intrinsics**, and use specialized **fast path for ASCII** encoding. See [Performance Improvements](docs/performance-improvements.md) for details and benchmarks.\n- Reworked analysis tools and `IAsyncEnumerable` interface for consuming analysis intermediate results\n- **CryptogramSolver** for automatic decryption of ciphertext\n- Brute force key spaces with parallel partitioning support\n- [New ciphers](docs/assets.md#ciphers) (10+): Scytale, Morse Code with extended charset, Polybius, Columnar Transposition, Double Columnar Transposition, ADFGX, ADFGVX, Straddling Checkerboard, One-Time Pad, Wolfenbütteler, Malespin\n- More detailed [documentation](docs)\n\n## Command-line interface\nMany of the library operations are published via CLI as well:\n\n - [Download](https://github.com/Peter-Juhasz/Science.Cryptography.Ciphers/releases)\n - [List available assets](docs/cli/list.md)\n - [Encrypt and decrypt text](docs/cli/encrypt-decrypt.md)\n - [Analyze ciphertext](docs/cli/analyze.md)\n\t- [Caesar Brute-force](docs/cli/analyze.md#caesar-brute-force)\n\t- [Frequency analysis](docs/cli/analyze.md#frequency-analysis)\n\t- [NGram analysis](docs/cli/analyze.md#ngram-analysis)\n\t- [Score](docs/cli/analyze.md#score)\n - [Find key for a ciphertext](docs/cli/find-key.md)\n - [Solve a cryptogram](docs/cli/solve.md)\n\n## Framework APIs\nYou can unlock the full power of the library from code:\n\n```cs\nvar cipher = new PlayfairCipher();\nvar key = PolybiusSquare.CreateFromKeyword(\"PLAYFAIR\", WellKnownAlphabets.EnglishWithoutJ);\nvar ciphertext = cipher.Encrypt(\"Hello world!\", key);\n```\n\n - [Get started](docs/lib/install.md)\n - [Basic tools](docs/lib/basics.md)\n\t- [Alphabet](docs/lib/basics.md#alphabet)\n\t- [Tabula Recta](docs/lib/basics.md#tabula-recta)\n\t- [Polybius Square](docs/lib/basics.md#polybius-square)\n\t- [Straddling Checkerboard](docs/lib/basics.md#straddling-checkerboard)\n - [Encrypt and decrypt text](docs/lib/encrypt-decrypt.md)\n\t- [Memory management](docs/lib/encrypt-decrypt.md#memory-management)\n - [Implement a cipher](docs/lib/encrypt-decrypt.md#implement-a-cipher)\n - [Analyze ciphertext](docs/lib/analyze.md)\n\t- [Caesar Brute-force](docs/lib/analyze.md#caesar-brute-force)\n\t- [Frequency analysis](docs/lib/analyze.md#frequency-analysis)\n\t- [NGram analysis](docs/lib/analyze.md#ngram-analysis)\n\t- [Score](docs/lib/analyze.md#score)\n - [Find key for a ciphertext](docs/lib/find-key.md)\n    - [Keyspaces](docs/lib/find-key.md#key-spaces)\n    - [KeyFinder](docs/lib/find-key.md#analysis)\n - [Solve a cryptogram](docs/lib/solve.md)\n\n## Assets\nThe full list of assets:\n\n - [List of ciphers](docs/assets.md#ciphers)\n - [List of languages](docs/assets.md#languages)\n - [List of encodings](docs/assets.md#encodings)\n\n## Contribution\nContributions for the following areas are welcome:\n\n - [Ciphers](https://github.com/Peter-Juhasz/Science.Cryptography.Ciphers/issues?q=is%3Aissue+is%3Aopen+label%3Acipher)\n    - Prefer performance in implementation (no heap allocations, SIMD operations, ...)\n    - *Feel free to add any not listed*\n - Performance improvements\n\t- Post benchmark and its results as evidence to show change in efficiency\n - Unit tests","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter-juhasz%2Fscience.cryptography.ciphers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeter-juhasz%2Fscience.cryptography.ciphers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter-juhasz%2Fscience.cryptography.ciphers/lists"}