BuckleScript/ReasonML Bindings for secure-random-string
npm install @ncthbrt/re-secure-random-stringsecure-random-string for BuckleScript and Reason. Safely generating a random string for cryptographic purposes is difficult using Node's build in crypto library. The secure-random-string library aims to make this easier.Install using npm:
```
npm install --save @ncthbrt/re-secure-random-string@ncthbrt/re-secure-random-string
Then add as a dependency in bsconfig.json.
reason
let randomString = SecureRandomString.gen(~length=64, ());
`
$3
`reason
SecureRandomString.gen(~length=64, ())
|> Js.Promise.then_(randomString => {
Js.log2("Random string is", randomString);
Js.Promise.resolve();
});
``