1.0.19 • Published 6 years ago

rotten-encryption2 v1.0.19

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

npm

npm.io

encrypt text with one key

INSTALL

npm install rotten-encryption2 -S

USAGE

var rotten = require('rotten-encryption2')('mars')
var code = rotten.encode('mars森') // '_>5%1tm1Tp1Tt'
rotten.decode(code) // 'mars森'
// abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890~!@#$%^&*()_+-=,.?|":;<>
var rotten = require('rotten-encryption2')('mars')

if use wan't to no special code you can

// abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890
var rotten = require('rotten-encryption2')('mars', false)
var code = rotten.encode('mars森') // 'P0S8%Fq%JX%JF'
rotten.decode(code) // 'mars森'

if you want custom code you can pass three params, this will ignore second param

// 1234567890
var rotten = require('rotten-encryption2')('mars', false, 'abcdefghijklmnopqrstuvwxyzABCDEFG1234567890')
var code = rotten.encode('mars森') // 'E0nD%tq%eh%et'
rotten.decode(code) // 'mars森'

thanks for the repo give me idea

https://github.com/zachflower/rotten-encryption

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago