Add server ID generation example

This commit is contained in:
ChronosX88 2020-07-16 12:28:21 +04:00
parent dc3bb4b3d1
commit 931828dee5
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A

View File

@ -26,7 +26,8 @@ For starting we simply use JSON + Websockets.
### Server-part
- hostname: `IPv4 / [IPv6] / dns-domain:<port (1-65535)>` (for end-users use)
- server ID: static SHA256 hash string from 4096 characters (for internal protocol use)
- server ID: static SHA256 hash string from 4096 characters (for internal protocol use).
- Generation example (using Linux): `echo -n $(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 4096 | head -n 1) | sha256sum`
### Username/Room alias/RoomID