Andrey Smirnov 6b0a66b514
fix(init): secret data at rest encryption key should be truly random (#797)
First, use cryptographically secure random number generator.

Second, generate random 32 bytes, don't limit them to any range, as
they're going to be base64-encoded anyways.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-06-28 17:57:51 +03:00
..