tuna4ll/noctahash — reverse-engineered prompt
Reverse engineered prompt
Build me a Rust project called NoctaHash. I want it to be a password hashing library with a simple command line tool, not just a demo. A user should be able to hash a password with sensible defaults, choose time cost, memory in MB, parallelism, and base64 or hex output, then verify a password against the saved hash string later.
Please make the hash string include the algorithm name, version, settings, salt, and hash so it can be stored in a database. Generate a secure salt when one is not provided, allow a custom salt, and enforce safe salt length. The implementation should focus on memory hard and time hard work, parallel execution with deterministic results, constant time verification, and wiping sensitive memory where reasonable.
Add clear README examples, a small CLI that runs from cargo, and tests for hashing, verifying, bad passwords, parameter limits, and output formats. Use current Rust best practices and look up docs online if you need to.
Want more depth? Deep Reverse