This package has been deprecated

Author message:

Please use @plmservices/nativescript-sha instead.

nativescript-sha
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Nativescript-SHA apple android

npm npm Build Status Donate

This plugin gives access to native SHA generation code on iOS and Android.

Supports SHA-1, SHA-224, SHA-256, SHA-384 and SHA-512.

Also support HMAC for all supported SHA hashes.

Prerequisites / Requirements

None.

Installation

To install, simply run:

tns plugin add nativescript-sha

Usage

import { Sha256, HmacSha256 } from 'nativescript-sha';

console.log(`Hash is ${Sha256("this is our test data")}`);

console.log(`Hmac is ${HmacSha256("secretkey", "this is our test data")}`);

Donation

If this project helped you reduce your development time, you could consider helping me with a cup of coffee or some electricity :)

Donate

License

Apache License Version 2.0, January 2004

Dependencies (0)

    Dev Dependencies (9)

    Package Sidebar

    Install

    npm i nativescript-sha

    Weekly Downloads

    2

    Version

    1.0.4

    License

    Apache-2.0

    Unpacked Size

    26.6 kB

    Total Files

    16

    Last publish

    Collaborators

    • gallandro