MichaelTheriot / tripcode

Calculate tripcodes in JavaScript.

Home Page:http://kenany.github.io/tripcode/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tripcode

Build Status Dependency Status

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.

About

Calculate tripcodes in JavaScript.

http://kenany.github.io/tripcode/

License:Other


Languages

Language:JavaScript 100.0%