1.5.0 • Published 4 years ago

derke v1.5.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

derke

derke

Very simple and changeable crypto library for javascript

npm version Build Status codecov

Install derke

npm install --save derke

Using derke

const derke = require("derke");

// Text convert to crypto code
derke.convert("hello"); // 00100000000010000000001000000000100000....

// Crypto code convert to text
derke.reverse(cryptoText); // hello

What is derke?

diagram

What Changeable (Custom derke) ?

lib/config.js file customize.

Old:

{
    key: "a",
    value: "00000000000..."
}

Custom:

{
    key: "a",
    value: "00000000000..."
},
{
    key: "ş",
    value: "00000000011..."
}

Attention Important !

  • "key" must be unique
  • "value" must be unique
  • "key" must be character (so length = 1)
  • All "value" lengths must be equal

How to test new custom config.js?

npm test

Performance derke

  • convert average time : 0.160 ms
  • reverse average time : 0.70 ms

Standart character list

0123456789
-.,?!()spaceab
cdefghijkl
mnopqrstuv
wxyzABCDEF
GHIJKLMNOP
QRSTUVWXYZ
çğıöşüÇĞİÖ
ŞÜ"#$%&*+'
/:;<>=@\ []
^_{}|~` | æ | Æ | ø
ØåÅäÄêÊîÎû
Ûenter
1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago