#key-gen #generator #customizable #hasher #hashing #structure #contributions

keygenx

KeyGen - simple, customizable and convenient Key Generator. Open For Contribution: qmvscorpio@gmail.com

2 releases

0.1.74 Jun 24, 2023
0.1.73 Jun 8, 2023
0.1.4 May 29, 2023

#1681 in Cryptography

Download history 3/week @ 2024-02-23 1/week @ 2024-03-01 3/week @ 2024-03-08 2/week @ 2024-03-15 47/week @ 2024-03-29 11/week @ 2024-04-05

58 downloads per month

MIT license

12KB
155 lines

rs-keygen

Open-source, simple, customizable and convenient Key Generator (in development).

Version Bugs Issues Authors

Features

  • Splitting the code into separate modules
  • Added a new hashing structure - Hasher
  • Bugs fixed

Review

Generator

  • gen_one - Generate one key (returns Result<String, &'static str)
  • gen - Generates the nth number of keys (-n is passed in the argument)

Hasher

  • hash_with_sha256 - parses key-string to sha256 hash

  • hash_with_md5 - parses key-string to md5 hash

Cargo.toml

keygenx = { version = ">= 0.1.72", features = ["crypto", "tests"] }
pub struct KeyGen {
   /// `length` - key length
   length: usize,
   /// `symbols` - a flag that can
   /// enable/disable symbols to key gen.
   symbols: bool,
   /// `numbers` - a flag that can
   /// enable/disable numbers to key gen.
   numbers: bool,
   /// `uppercase` - a flag that can 
   /// enable/disable uppercase symbols to key gen.
   uppercase: bool,
   /// `lowercase` - a flag that can
   /// enable/disable lowercase symbols to key gen.
   lowercase: bool,
   /// `space` - a flag that can
   /// enable/disable space - ` ` to key gen.
   space: bool,
}

Documentation

The main doc is available at docs.rs.

Contributing

KeyGen open for contribution.

Contact Us: qmvscorpio@gmail.com

Dependencies

~3.5MB
~50K SLoC