Skip to content

tycrek/brainrot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brainrot

NPMCBT badge

A ROT cipher tool

Usage

brainrot is a ROT cipher tool. Run it and it will do a Caesar cipher (also known as rotation cipher) on your provided input.

You can specify the number of rotations with -r <rotations>. If you omit this value, brainrot will do 26 iterations automatically.

For example, npx brainrot -r 13 Caesar shift will produce:

Pnrfne fuvsg

Without -r, you would get:

 0: Caesar shift
 1: Dbftbs tijgu
 2: Ecguct ujkhv
 3: Fdhvdu vkliw
 ...
 ...
 ...
23: Zxbpxo pefcq
24: Aycqyp qfgdr
25: Bzdrzq rghes
26: Caesar shift

Lore

The code for cipher.ts originally came from my older project, rot-cipher.

License

Licensed under ISC

Copyright (c) 2023 tycrek