How to use the node-bignumber.BigInteger function in node-bignumber

To help you get started, we’ve selected a few node-bignumber examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github node-pinus / pinus / packages / pinus / lib / components / connector.ts View on Github external
setPubKey(id: number, key: { rsa_n: string, rsa_e: string }) {
        let pubKey = new rsa.Key();
        pubKey.n = new rsa.BigInteger(key.rsa_n, 16);
        pubKey.e = key.rsa_e;
        this.keys[id] = pubKey;
    }

node-bignumber

A pure javascript implementation of BigIntegers and RSA crypto.

Unrecognized
Latest version published 3 years ago

Package Health Score

45 / 100
Full package analysis