defuse / passgenr

A library for generating cryptographically-secure passwords in Rust.
MIT License
8 stars 1 forks source link

Add the wordlist to the binary with include_bytes! #10

Closed defuse closed 6 years ago

defuse commented 6 years ago

https://doc.rust-lang.org/std/macro.include_bytes.html

defuse commented 6 years ago

It's simpler to just use cat resources/wordlist.txt | sed 's/^/"/' | sed 's/$/",/', that way it can be put into a constant just like the other character sets, and doesn't need to be loaded at runtime.