tripcode
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

tripcode

JavaScript implementation of 4chan's tripcode algorithm.

Example

var tripcode = require('tripcode');

tripcode('f}EAmbA%');
// => '/izs/14Iuw'

There's even a tripcode command if you install globally!

$ tripcode github is cool
#github => !lLf/rxkwgg
#is => !4CEimo5sKs
#cool => !QkO1sgFXdY

You can also pipe in a newline-delimited file:

$ cat > codes.txt
github
is
cool

$ tripcode < codes.txt
#github => !lLf/rxkwgg
#is => !4CEimo5sKs
#cool => !QkO1sgFXdY

Or pipe out the tripcodes to grep or something to find specific tripcodes!

$ tripcode < /usr/share/dict/words | grep -E '(/AhWyw3toI)'
#incognito => !/AhWyw3toI

Installation

$ npm install tripcode

Unless you want the tripcode command, in which case you gotta install globally:

$ npm install -g tripcode

API

var tripcode = require('tripcode');

tripcode(password)

Returns the tripcode generated from String password.

Readme

Keywords

Package Sidebar

Install

npm i tripcode

Weekly Downloads

13

Version

4.0.0

License

MIT

Unpacked Size

265 kB

Total Files

9

Last publish

Collaborators

  • kenan