Skip to content

Repository files navigation

tripcode

JavaScript implementation of 4chan's tripcode algorithm.

Example

vartripcode=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

vartripcode=require('tripcode');

tripcode(password)

Returns the tripcode generated from Stringpassword.

About

Generate tripcodes in JavaScript.

Resources

Stars

25 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages