Switch to standard base64

The exact format is unimportant, what matters is that the nonce contains
enough entropy. Crypt64 was originally chosen because it was used elsewhere.
Raw bytes would also work, but would be less readable if inspected manually.
This commit is contained in:
Alexander van Gessel 2018-03-15 23:31:17 +01:00
parent 9932ed0999
commit 4e11f6b46f
No known key found for this signature in database
GPG key ID: ED28AFE007041A1F

View file

@ -68,6 +68,6 @@ std::string user_handler::create_secure_nonce()
throw RAND_bytes_exception();
}
return crypt64::encode({buf.data(), buf.size()});
return base64::encode({buf.data(), buf.size()});
}