✓ Uses Rust 2018 edition
|0.7.1||Apr 20, 2020|
|0.7.0||Nov 19, 2019|
|0.6.5||Mar 28, 2019|
|0.6.4||Jun 13, 2018|
|0.1.1||Jul 7, 2015|
#489 in Algorithms
6,140 downloads per month
Used in 52 crates (12 directly)
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.
TextNoncees may be generated. The minimum length is 16
characters, and lengths must be evenly divisible by 4.
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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.