No Possible Meaning

    @aws-crypto/sha256-universal
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.0 • Public • Published

    @aws-crypto/sha256-universal

    A consistent interface for SHA256 across browsers and NodeJs

    Usage

    • To hash "some data"
    import {Sha256} from '@aws-crypto/sha256-universal'
    
    const hash = new Sha256();
    hash.update('some data');
    const result = await hash.digest();
    
    
    • To hmac "some data" with "a key"
    import {Sha256} from '@aws-crypto/sha256-universal'
    
    const hash = new Sha256('a key');
    hash.update('some data');
    const result = await hash.digest();
    
    

    Test

    npm test

    Keywords

    none

    Install

    npm i @aws-crypto/sha256-universal

    DownloadsWeekly Downloads

    31,760

    Version

    3.0.0

    License

    Apache-2.0

    Unpacked Size

    24.3 kB

    Total Files

    13

    Last publish

    Collaborators

    • amzn-oss
    • seebees
    • agray256
    • lavaleri
    • salkeldr
    • aws-crypto-tools-ci-bot
    • mattsb42-aws
    • farleyb-aws