https://github.com/ecto/rcs
random character server
https://github.com/ecto/rcs
Last synced: 9 months ago
JSON representation
random character server
- Host: GitHub
- URL: https://github.com/ecto/rcs
- Owner: ecto
- Created: 2013-01-02T22:36:34.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-01-03T00:40:38.000Z (over 13 years ago)
- Last Synced: 2025-06-29T09:40:52.732Z (12 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rcs
RCS (Random Character Server) serves `/dev/urandom` over HTTPS to provide entropy for client-side CSPRNGs, avoiding collecting mouse movement from the client or other environmental variables. It keeps a stream of `/dev/urandom` open and spits out bytes when requested.
# usage
Clone this repository and run `node server` from the directory.
You should generate your own SSL certificate, but the `example.pfx` file will work for demonstration purposes.
You can change the port in the code. The program is so simple that it seemed foolish to add a config file.
Run `curl -k https://localhost:8000`, receive randomness
Run `curl -k https://localhost:8000/123`, receive 123 characters of randomness
Run `curl -ks https://localhost:8000/123 | wc -m`, confirm you've received 123 characters of randomness
# license
MIT