This version has been deprecated

    Author message:

    This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).

    cryptiles
    DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/cryptiles package

    3.0.2 • Public • Published

    cryptiles

    General purpose crypto utilities

    Build Status

    Lead Maintainer - C J Silverio

    Methods

    randomString(<Number> size)

    Returns a cryptographically strong pseudo-random data string. Takes a size argument for the length of the string.

    fixedTimeComparison(<String> a, <String> b)

    Compare two strings using fixed time algorithm (to prevent time-based analysis of MAC digest match). Returns true if the strings match, false if they differ.

    Install

    npm i cryptiles@3.0.2

    Version

    3.0.2

    License

    BSD-3-Clause

    Last publish

    Collaborators

    • hueniverse