@f0c1s/security-strings
v2026.0.0
Published
`secstr` command line utility. Run an input string through a bunch of operations like rot, base64, hash etc.
Downloads
29
Readme
secstr
- github: node-security-strings
- NPM: @f0c1s/security-strings
- Command:
secstr <input> [--table | --rot13s]
secstr
command line utility.
Use v2026.
Installation and Usage
- as code:
npm i @f0c1s/security-strings
(no idea why you would do that) - as command:
npm i -g @f0c1s/security-strings
(Gives yousecstr
command)
secstr [email protected]
# secstr "[email protected]"
#
# rot13 [email protected]
# rot47 @?6o6I2>A=6]4@>
# base64.encode b25lQGV4YW1wbGUuY29t
# base64.decode ...[This breaks readme.md]...
# escapeJS one\x40example.com
# escapeHTML one@example.com
# END
Table
secstr [email protected] --table
# secstr "[email protected]"
#
# ┌─────────┬─────────────────┬────────────────────────┐
# │ (index) │ fn │ fn(input) │
# ├─────────┼─────────────────┼────────────────────────┤
# │ 0 │ 'rot13' │ '[email protected]' │
# │ 1 │ 'rot47' │ '@?6o6I2>A=6]4@>' │
# │ 2 │ 'base64.encode' │ 'b25lQGV4YW1wbGUuY29t' │
# │ 3 │ 'base64.decode' │ '¢w\x02±jje\x1Er\x89' │
# │ 4 │ 'escapeJS' │ 'one\\x40example.com' │
# │ 5 │ 'escapeHTML' │ 'one@example.com' │
# └─────────┴─────────────────┴────────────────────────┘
# END
All of the rot13s
secstr [email protected] --rot13s
# secstr "[email protected]"
#
# rot13 [email protected]
# rot47 @?6o6I2>A=6]4@>
# base64.encode b25lQGV4YW1wbGUuY29t
# base64.decode ...[This breaks readme.md]..
# escapeJS one\x40example.com
# escapeHTML one@example.com
# { i: 1, rot: '[email protected]' }
# { i: 2, rot: '[email protected]' }
# { i: 3, rot: '[email protected]' }
# { i: 4, rot: '[email protected]' }
# { i: 5, rot: '[email protected]' }
# { i: 6, rot: '[email protected]' }
# { i: 7, rot: '[email protected]' }
# { i: 8, rot: '[email protected]' }
# { i: 9, rot: '[email protected]' }
# { i: 10, rot: '[email protected]' }
# { i: 11, rot: '[email protected]' }
# { i: 12, rot: '[email protected]' }
# { i: 13, rot: '[email protected]' }
# { i: 14, rot: '[email protected]' }
# { i: 15, rot: '[email protected]' }
# { i: 16, rot: '[email protected]' }
# { i: 17, rot: '[email protected]' }
# { i: 18, rot: '[email protected]' }
# { i: 19, rot: '[email protected]' }
# { i: 20, rot: '[email protected]' }
# { i: 21, rot: '[email protected]' }
# { i: 22, rot: '[email protected]' }
# { i: 23, rot: '[email protected]' }
# { i: 24, rot: '[email protected]' }
# { i: 25, rot: '[email protected]' }
# { i: 26, rot: '[email protected]' }
# END
Everything is a table...
secstr [email protected] --rot13s --table
# secstr "[email protected]"
#
# ┌─────────┬─────────────────┬────────────────────────┐
# │ (index) │ fn │ fn(input) │
# ├─────────┼─────────────────┼────────────────────────┤
# │ 0 │ 'rot13' │ '[email protected]' │
# │ 1 │ 'rot47' │ '@?6o6I2>A=6]4@>' │
# │ 2 │ 'base64.encode' │ 'b25lQGV4YW1wbGUuY29t' │
# │ 3 │ 'base64.decode' │ '¢w\x02±jje\x1Er\x89' │
# │ 4 │ 'escapeJS' │ 'one\\x40example.com' │
# │ 5 │ 'escapeHTML' │ 'one@example.com' │
# └─────────┴─────────────────┴────────────────────────┘
# ┌─────────┬────┬───────────────────┐
# │ (index) │ i │ rot │
# ├─────────┼────┼───────────────────┤
# │ 0 │ 1 │ '[email protected]' │
# │ 1 │ 2 │ '[email protected]' │
# │ 2 │ 3 │ '[email protected]' │
# │ 3 │ 4 │ '[email protected]' │
# │ 4 │ 5 │ '[email protected]' │
# │ 5 │ 6 │ '[email protected]' │
# │ 6 │ 7 │ '[email protected]' │
# │ 7 │ 8 │ '[email protected]' │
# │ 8 │ 9 │ '[email protected]' │
# │ 9 │ 10 │ '[email protected]' │
# │ 10 │ 11 │ '[email protected]' │
# │ 11 │ 12 │ '[email protected]' │
# │ 12 │ 13 │ '[email protected]' │
# │ 13 │ 14 │ '[email protected]' │
# │ 14 │ 15 │ '[email protected]' │
# │ 15 │ 16 │ '[email protected]' │
# │ 16 │ 17 │ '[email protected]' │
# │ 17 │ 18 │ '[email protected]' │
# │ 18 │ 19 │ '[email protected]' │
# │ 19 │ 20 │ '[email protected]' │
# │ 20 │ 21 │ '[email protected]' │
# │ 21 │ 22 │ '[email protected]' │
# │ 22 │ 23 │ '[email protected]' │
# │ 23 │ 24 │ '[email protected]' │
# │ 24 │ 25 │ '[email protected]' │
# │ 25 │ 26 │ '[email protected]' │
# └─────────┴────┴───────────────────┘
# END
- OR as
npx
command
npx @f0c1s/security-strings "what?"
License
MIT
Development
npm i -g typescript
because npm i -D typescript
consumes 60MB.
npm run build
- for building .ts files
npm run build && npm link && secstr
for quickly checking out the default.