22 releases

✓ Uses Rust 2018 edition

new 0.7.0 Nov 19, 2019
0.6.5 Mar 28, 2019
0.6.4 Jun 13, 2018
0.6.3 Sep 19, 2017
0.1.1 Jul 7, 2015

#33 in Algorithms

Download history 2109/week @ 2019-08-06 2665/week @ 2019-08-13 2896/week @ 2019-08-20 2108/week @ 2019-08-27 3203/week @ 2019-09-03 2457/week @ 2019-09-10 2314/week @ 2019-09-17 2379/week @ 2019-09-24 5132/week @ 2019-10-01 2270/week @ 2019-10-08 2348/week @ 2019-10-15 1972/week @ 2019-10-22 1583/week @ 2019-10-29 1569/week @ 2019-11-05 1572/week @ 2019-11-12

10,193 downloads per month
Used in 38 crates (11 directly)

MIT/Apache

8KB
96 lines

TextNonce

Build Status

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 TextNoncees may be generated. The minimum length is 16 characters, and lengths must be evenly divisible by 4.

License

Licensed under either of

at your option.

Contribution

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.

Dependencies

~2–2.6MB
~48K SLoC