Git Product home page Git Product logo

krypto's Introduction

Warning

Full rewrite in progress due to lack of class usage.

What's is it ?

krypto is a NodeJS crypto module written in C++.

Supported algorithm

[✔️] ADLER32
[✔️] CRC32
[❌] FARMHASH
[✔️] FNV1    32-64
[✔️] FNV1A   32-64-128-256-512-1024
[❌] GOST
[✔️] HAVAL-3 128-160-192-224-256
[✔️] HAVAL-4 128-160-192-224-256
[✔️] HAVAL-5 128-160-192-224-256
[❌] JOAAT
[✔️] MD2
[✔️] MD4
[✔️] MD5
[✔️] MD5X    2-3-4-5
[❌] MURMUR3
[❌] PEARSON
[✔️] RIPEMD  128-160-256-320
[✔️] SHA-1
[✔️] SHA     224-256-384-512
[❌] SNEFRU  128-256
[✔️] TIGER-3 128-160-192
[✔️] TIGER-4 128-160-192
[❌] WHIRLPOOL
[❌] SMDB
[❌] DJB2
[❌] LOSE LOSE

Usage

const krypto = require("@ck0nrad/krypto");
const crypto = require('crypto')

console.time("krypto");
let MD5 = krypto.md5("Test"); //0cbc6611f5540bd0809a388dc95a615b
console.timeEnd("krypto");

console.time("crypto")
let hash = crypto.createHash('md5').update('Test').digest("hex")
console.timeEnd("crypto")

console.log(MD5)
console.log(hash)
> node test.js
krypto: 0.167ms
crypto: 0.715ms
0cbc6611f5540bd0809a388dc95a615b
0cbc6611f5540bd0809a388dc95a615b

Install

npm i @ck0nrad/krypto

krypto's People

Contributors

ck0nrad avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.