Git Product home page Git Product logo

crypto-random-hexadecimal's Introduction

Crypto Random Hexadecimal

Generate a cryptographically-random hexadecimal string with the given number of bytes of entropy.

Install

npm install --save crypto-random-hexadecimal

Usage

import random from 'crypto-random-hexadecimal';

random ( 8 ); // => '4e8eefd571e21e56'
random ( 16 ); // => '402c59006784a2a55e994589693e907c'
random ( 32 ); // => 'e605724a1b4e9edd78af52687940a25e72e663f92b4c8db079988fe807c951e9'
random ( 64 ); // => 'bd23c22e74d98991bd76380be566f9e984a78b64d352c14cfd02d28363683edd97fcc8881e7d8d707c98d86e768cda107468339c66ff53948eba98f6c7d66b99'
random ( 128 ); // => '546100dc267735ec68a034575bf0aca61f862489d220788425768537b8899e0ff1d1c987eb1235496b135fb17c03720409942a65171ca7767ccf5a084aaa53f1fbfc6d5f40b958856da258335323c111c644012e880e1bb9ddc34bf36090cf1e96ec65d0f5720a6fc1dd6b630281aa15875d0a13343497487b872623affea9bd'

License

MIT © Fabio Spampinato

crypto-random-hexadecimal's People

Contributors

fabiospampinato avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.