Skip to content
/ derke Public

Very simple and changeable crypto library for javascript

License

Notifications You must be signed in to change notification settings

veysel/derke

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

0 1 2 3 4 5 6 7 8 9
- . , ? ! ( ) space a b
c d e f g h i j k l
m n o p q r s t u v
w x y z A B C D E F
G H I J K L M N O P
Q R S T U V W X Y Z
ç ğ ı ö ş ü Ç Ğ İ Ö
Ş Ü " # $ % & * + '
/ : ; < > = @ \ [ ]
^ _ { } | ~ ` æ Æ ø
Ø å Å ä Ä ê Ê î Î û
Û enter

About

Very simple and changeable crypto library for javascript

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published