isaac-crypto
TypeScript icon, indicating that this package has built-in type declarations

2.0.5 • Public • Published

isaac-crypto

An implementation of ISAAC for Node.js. More information about ISAAC can be found here.

This implementation of the algorithm has 24 test seeds, each of which is tested for correctness within the first 1 million results. These results are compared with results obtained from a known-good Java implementation of ISAAC, using the same seeds.

Installation

$ npm install isaac-crypto --save

Usage

import { ISAACGenerator } from "isaac-crypto";

const generator = new ISAACGenerator([ 1, 2, 3, 4 ]);

generator.getNextResult(); // -621246914
generator.getNextResult(); // 1957022519

Development

Install all dependencies with npm.

Run tests with npm test.

Test cases can be set up in ./test/cases. Each test case represents a set of expected results for a given seed. Logfiles for tests go in ./test/logs under their test name.

License

isaac-crypto is licensed under The MIT License. To see the full license text included with the project, visit the LICENSE file.

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i isaac-crypto

    Weekly Downloads

    4

    Version

    2.0.5

    License

    MIT

    Unpacked Size

    9.37 kB

    Total Files

    15

    Last publish

    Collaborators

    • jameskmonger