chore: initial commit with existing codebase

This commit is contained in:
2025-11-13 13:08:49 +00:00
commit 18c991181a
11 changed files with 1424 additions and 0 deletions

11
tests/test_cli.py Normal file
View File

@@ -0,0 +1,11 @@
from salt import hash_password, main
def test_main_supports_hash_shortcut() -> None:
assert main(["secret"]) == 0
def test_main_verify_round_trip() -> None:
salt, hashed = hash_password("secret-value")
assert main(["verify", "secret-value", salt, hashed]) == 0
assert main(["verify", "wrong", salt, hashed]) == 1