Crates.io | textnonce |
lib.rs | textnonce |
version | 1.0.0 |
source | src |
created_at | 2015-06-14 20:34:36.144585 |
updated_at | 2020-10-01 18:35:49.255169 |
description | Text based random nonce generator |
homepage | |
repository | https://github.com/mikedilger/textnonce |
max_upload_size | |
id | 2380 |
size | 21,522 |
Documentation is available at https://docs.rs/textnonce
A nonce is a cryptographic concept of an arbitrary number that is never used more than once.
TextNonce
is a nonce because the first 16 characters represents the current
time, which will never have been generated before, nor will it be generated
again, across the period of time in which Timespec is valid.
TextNonce
additionally includes bytes of randomness, making it difficult
to predict. This makes it suitable to be used for a session ID.
It is also text-based, using only characters in the base64 character set.
Various length TextNonce
es may be generated. The minimum length is 16
characters, and lengths must be evenly divisible by 4.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.