Giter VIP home page Giter VIP logo

ts-sha2's Introduction

TypeScript SHA2 Module

This is a pretty fast SHA2 implementation written in TypeScript. It implements the complete SHA-2 family with digests that are 224, 256, 384 or 512 bits: SHA2-224, SHA2-256, SHA2-384, SHA2-512, SHA2-512/224, SHA2-512/256.

Usage

Import the module:

import SHA2 = require("sha2");

And start hashing...

SHA2.SHA2_224(""); // Returns "d14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f"
SHA2.SHA2_256(""); // Returns "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
SHA2.SHA2_384(""); // Returns "38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b"
SHA2.SHA2_512(""); // Returns "cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e"
SHA2.SHA2_512_224(""); // Returns "6ed0dd02806fa89e25de060c19d3ac86cabb87d6a0ddd05c333b84f4"
SHA2.SHA2_512_256(""); // Returns "c672b8d1ef56ed28ab87c3622c5114069bdd3ad7b8f9737498d0c01ecef0967a"

More information

http://en.wikipedia.org/wiki/SHA-2

License

This module is licensed under the MIT license.

ts-sha2's People

Contributors

markvandenbrink avatar

Watchers

Julien 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.