https://github.com/quantam-studios/simpleciphers
A C# library for plain text encryption and decryption for simple, but fun ciphers.
https://github.com/quantam-studios/simpleciphers
ciphers csharp nuget-package
Last synced: 5 months ago
JSON representation
A C# library for plain text encryption and decryption for simple, but fun ciphers.
- Host: GitHub
- URL: https://github.com/quantam-studios/simpleciphers
- Owner: Quantam-Studios
- License: gpl-3.0
- Created: 2023-10-31T06:06:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-11T21:50:49.000Z (over 1 year ago)
- Last Synced: 2025-09-01T06:39:13.984Z (10 months ago)
- Topics: ciphers, csharp, nuget-package
- Language: C#
- Homepage:
- Size: 54.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Simple Ciphers
A C# package for plain text encryption and decryption for simple, but fun ciphers.
# Add to Project
Via `dotnet`:
```cs
dotnet add package simple-ciphers --version 2.3.0
```
Via `PackageReference` in your `.csproj` file:
```cs
```
# `Encryption`
Use `A1Z26()` to substitute letters for their corresponding positions.
```cs
Encryption.A1Z26("hello world!");
// returns: 8-5-12-12-15 23-15-18-12-4!
```
Use `Atbash()` to swap letters to their opposite positions.
```cs
Encryption.Atbash("hello world!");
// returns: svool dliow!
```
Use `Caesar()` for shift ciphers.
```cs
Encryption.Caesar("hello world!", 3);
// returns: khoor zruog!
```
Use `Morse()` to substitute letters for their morse code equivalent.
```cs
Encryption.Morse("hello world!");
// returns: .... . .-.. .-.. --- / .-- --- .-. .-.. -.. -.-.--
```
Use `Vigenere()` to cipher with a key.
```cs
Encryption.Vigenere("hello world!", "key");
// returns: rijvs uyvjn!
```
Use `Binary()` to cipher with Binary.
```cs
Encryption.Binary("hello world!");
// returns: 01101000 01100101 01101100 01101100 01101111 00100000 01110111 01101111 01110010 01101100 01100100 00100001
```
# `Decryption`
Use `A1Z26()` to substitute numbers for their corresponding letters.
```cs
Decryption.A1Z26("8-5-12-12-15 23-15-18-12-4!");
// returns: hello world!
```
Use `Atbash()` to swap letters to their opposite positions.
```cs
Decryption.Atbash("svool dliow!");
// returns: hello world!
```
Use `Caesar()` for shift ciphers.
```cs
Decryption.Caesar("khoor zruog!", 3);
// returns: hello world!
```
Use `Morse()` to substitute morse code for their letter and/or symbol equivalent.
```cs
Decryption.Morse(".... . .-.. .-.. --- / .-- --- .-. .-.. -.. -.-.--");
// returns: hello world!
```
Use `Vigenere()` to decipher with a key.
```cs
Decryption.Vigenere("rijvs uyvjn!", "key");
// returns: hello world!
```
Use `Binary()` to decipher with Binary.
```cs
Decryption.Binary("01101000 01100101 01101100 01101100 01101111 00100000 01110111 01101111 01110010 01101100 01100100 00100001");
// returns: hello world!
```