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
The code for cipher.ts
originally came from my older project, rot-cipher.
Licensed under ISC
Copyright (c) 2023 tycrek