Gathering detailed insights and metrics for node-red-contrib-trng
Gathering detailed insights and metrics for node-red-contrib-trng
A Node-RED module that attempts to be a True Random Number Generator (TRNG) for generating highly random data when triggered.
npm install node-red-contrib-trng
Typescript
Module System
Node Version
NPM Version
69.3
Supply Chain
90.8
Quality
75.2
Maintenance
100
Vulnerability
80.9
License
JavaScript (56.45%)
HTML (43.55%)
Total Downloads
366
Last Day
1
Last Week
6
Last Month
18
Last Year
153
7 Commits
2 Watching
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.0.0
Package Id
node-red-contrib-trng@1.0.0
Unpacked Size
44.04 kB
Size
15.43 kB
File Count
6
NPM Version
6.14.18
Node Version
14.21.3
Publised On
05 May 2023
Cumulative downloads
Total Downloads
Last day
-50%
1
Compared to previous day
Last week
100%
6
Compared to previous week
Last month
38.5%
18
Compared to previous month
Last year
-28.2%
153
Compared to previous year
# node-red-contrib-trng
A Node-RED module that attempts to be a True Random Number Generator (TRNG) for generating highly random data when triggered.
## Features
- Generates random data by combining multiple sources of entropy
- Output is provided as a hexadecimal string
- Configurable output length
## Installation
Using the Node-RED editor:
1. Click the hamburger menu in the top right corner.
2. Select "Manage Palette".
3. In the "User Settings" window, switch to the "Install" tab.
4. Search for `node-red-contrib-trng` and click "Install".
Using npm:
Run the following command in your Node-RED user directory (typically `~/.node-red`):
npm install node-red-contrib-trng
Restart your Node-RED instance to load the new module.
## Usage
The TRNG node can be found in the Node-RED editor under the "function" category. Drag the node into your flow and connect it as needed.
The input message should contain the following properties:
- `msg.length` (Optional): The desired length of the random data as a hexadecimal string. If not specified, the default length is 8 characters.
The output message will contain the payload with the generated random data as a hexadecimal string.
## Example
Here's a simple example of how to use the TRNG node in a flow:
1. Add an inject node and set its payload to a number, representing the desired length of the random data.
2. Connect the inject node to the input of the TRNG node.
3. Add a debug node and connect it to the output of the TRNG node.
4. Deploy the flow and trigger the inject node. The debug node should display the generated random data as a hexadecimal string of the specified length.
5. Check examples/ for the readymade sample flow.
## Author
Harshad Joshi
## License
This Node-RED module is released under the [GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0.en.html).
The TRNG (True Random Number Generator) Node-RED module can prove useful in various scenarios where you need high-quality random data. Some potential use cases include:
The TRNG Node-RED module is designed to generate high-quality random data by combining multiple sources of entropy, making it suitable for applications where the quality of randomness is crucial.
This module is created for generation of random numbers and does not intend to replace existing security solutions and algorithms. Do not complain to me or anyone in case things break by using this module.
No vulnerabilities found.
No security vulnerabilities found.