rot26 0.1.2

Pure rust rewrite of the rot26 algorithm
Documentation
  • Coverage
  • 85.71%
    6 out of 7 items documented0 out of 6 items with examples
  • Size
  • Source code size: 8.16 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.21 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • jD91mZM2/rot26
    33 5 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • jD91mZM2

rot26 Crates.io

ROT13 ("rotate by 13 places", sometimes hyphenated ROT-13) is a letter substitution cipher that replaces a letter with the letter 13 letters after it in the alphabet. Instead of only rotating 13 places, ROT26 rotates twice as many characters in the alphabet and is therefore twice as secure.

Pure rust rewrite of the rot26 algorithm.
Even maintains support for rot13 and any rot, with friendly helpful comments advising you to just stick to rot26.

ROT26 encryption & decryption is very complex and requires a powerful, purpose-built super-computer to perform all the calculations... which we have created. So, to encourage more developers to use ROT26 in their mobile, web and PC software applications we are offering a very easy to use and totally free ROT26 encryption and decryption REST web service.

This is no longer true.
That and all the following are features now possible thanks to Rust:

  • Complete unicode support. Disregards any non-alphabetical symbols! (was probably possible before actually)
  • Unit tests.

Speeeeeeeed

If being able to actually run this heavy algorithm on your computer isn't facinating enough, you can also use rayon for multithreading!
Simply use it with the rayon feature. But by default, rot26 is and forever will be* without dependencies.

* no promises

Examples

Simply call rot26::encrypt on any string. For example:

rot26::encrypt("hello") // returns "hello"

to decrypt, use rot26::decrypt

rot26::decrypt("hello") // returns "hello"