npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

crypto-data

v0.0.19

Published

crypto mechanisum for encrypt and decrypt data in NBFC Data Security eco-system

Downloads

278

Readme

Installation

    const encNdesc = require('crypto-data');

Usage

FI DATA ENC N DESC

Note: all functions promised based functions so either you can use await or then to handle the response.

FIU Generate ECDH keys

    let ECDHkeypair= await encNdesc.enc.generateKeyMaterial(eccUrl);
    /**
     * eccUrl = ECC base Url [default is http://localhost:8111]
    */

FIP Encryption

    let encryptedData=await encNdesc.FIPEncryption(id, Data, fiuKeyMaterialData, eccUrl);
    /**
     * id= fip ID
     * Data= FI Data
     * fiuKeyMaterialData= his KeyMaterial
     * eccUrl = ECC base Url 
    */

    Note :  we can use all Encryption functions calling by encNdesc.enc 

FIU Decryption

let decryptedFIUData=await encNdesc.dataDecrypt(cipher,hisKeyMaterial, myScrtKey,fiuNonce, eccUrl);
    /**
     * cipher= encrypted Data 
     * fiuKeyMaterialData= his KeyMaterial
     * myScrtKey= my ECDH privateKey
     * fiuNonce = my random 32-byte BASE64 string
     * opts = optional parameters Object 
    */
    Note : iv id depricated. need not pass iv as params inrenally it will took from cipher.

Version release summary

  1. 0.0.1
    1. this is extracted from finpro-crypto v0.0.14
  2. 0.0.2
    1. now onwards random nonce are integers only
  3. 0.0.3
    1. in FIPEncryption return object the params key is changed from object to empty string.
  4. 0.0.4
    1. revereted number nonce to Base64 encoded.
    2. Introduced ECC API Services for ECDH Key Pair, FI Data Encryption and Decryption. Deprecated the curve25519-n library.
    3. need to pass eccUrl as extra param for encryption , generate ecdh functions.
  5. 0.0.5
    1. ECC docker version changed.
  6. 0.0.6
    1. FI DB Data getting OoB now changed to AoB before doing Asnyc operations.
  7. 0.0.7
    1. unused libraries are removed from .json file.
  8. 0.0.8
    1. getting extra spaces after decryption for Encrypted FI. now its resolved. now it will work for both JSON and XML. .... ....
  9. 0.0.13
    1. upgrading ECC service from v1 to v1.2. made changes in functions as per new ecc API's request and responses.
  10. 0.0.16
    1. in encryption previously we are passing base64 FI data now plain text with stringified is enough.
  11. 0.0.17
    1. in above encryption technique XMl string is stringfiying twice so implemented logic based typeof method stringifying.
  12. 0.0.18
    1. DHPublickey expiry time formate currently accepting Z only now we made changes to accept both Z and +0000 as suffix.
  13. 0.0.19
    1. keymaterials sequence