# Генерация секретов

> Ключи, токены, пароли — как правильно.

```bash
openssl rand -hex 32       # webhook secret (64 hex символов)
openssl rand -hex 4        # shortIds (id=531681)
xray x25519                # Reality keypair
```
[id=58756, 531681, 576608](https://t.me/c/2941121338/58756).

---
Источник: https://host.pink/baza/skripty/sekrety/
Оригинал: https://github.com/Rxflex/BedolagaBD/blob/main/docs/07-скрипты/секреты.md
Лицензия: CC BY-SA 4.0
