https://github.com/murphsicles/argon2
Memory-hard password hashing for Zeta
https://github.com/murphsicles/argon2
Last synced: 22 days ago
JSON representation
Memory-hard password hashing for Zeta
- Host: GitHub
- URL: https://github.com/murphsicles/argon2
- Owner: murphsicles
- License: mit
- Created: 2026-06-02T09:19:16.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-06-02T09:47:08.000Z (about 2 months ago)
- Last Synced: 2026-06-02T11:18:52.323Z (about 2 months ago)
- Size: 16.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ⚡ @crypto/argon2 — Memory-Hard Password Hashing for Zeta
**Port of the Rust `argon2` crate (v0.5.x). Argon2id per RFC 9106.
Pure Zeta. Memory-hard. Side-channel resistant.**
---
## 📦 Package
```
zorbs add @crypto/argon2
```
## 🔧 API
### Hash Password (raw bytes)
```zeta
let hash = hash_password(password, salt);
// 32-byte derived key (recommended params: 64MB, 3 passes, 4 lanes)
```
### Custom Parameters
```zeta
let params = Argon2Params::low_mem(); // 4MB, 2 passes
let hash = argon2id(password, salt, ¶ms, 32);
```
### Encoded Hash (PHC String Format)
```zeta
let encoded = hash_encoded(password, salt, ¶ms);
// $argon2id$v=19$m=65536,t=3,p=4$$
```
### Available Parameter Presets
| Preset | Memory | Time | Parallelism | Use Case |
|---|---|---|---|---|
| `recommended()` | 64 MB | 3 | 4 | Server-side (RFC 9106) |
| `minimum()` | 19 MB | 1 | 1 | Minimum secure |
| `low_mem()` | 4 MB | 2 | 1 | Embedded / resource-constrained |
## 📄 License
MIT OR Apache-2.0