textnonce

Text based random nonce generator

24 releases (1 stable)

1.0.0 Oct 1, 2020
0.7.1 Apr 20, 2020
0.7.0 Nov 19, 2019
0.6.5 Mar 28, 2019
0.1.1 Jul 7, 2015
Download history 2316/week @ 2024-07-21 2271/week @ 2024-07-28 1628/week @ 2024-08-04 2356/week @ 2024-08-11 1986/week @ 2024-08-18 1427/week @ 2024-08-25 1449/week @ 2024-09-01 1356/week @ 2024-09-08 1225/week @ 2024-09-15 1698/week @ 2024-09-22 1629/week @ 2024-09-29 1688/week @ 2024-10-06 1398/week @ 2024-10-13 1425/week @ 2024-10-20 1313/week @ 2024-10-27 1442/week @ 2024-11-03

5,967 downloads per month
Used in 61 crates (18 directly)

MIT/Apache

10KB
104 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

~1.6–2.4MB
~43K SLoC