https://github.com/rohitanwar/cryptography
An exploration of various cryptographic functions (and related stuuf)
https://github.com/rohitanwar/cryptography
cryptography sha1 zig ziglang
Last synced: 10 months ago
JSON representation
An exploration of various cryptographic functions (and related stuuf)
- Host: GitHub
- URL: https://github.com/rohitanwar/cryptography
- Owner: rohitanwar
- Created: 2025-06-12T11:11:00.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-06-12T12:57:44.000Z (about 1 year ago)
- Last Synced: 2025-06-12T13:53:11.144Z (about 1 year ago)
- Topics: cryptography, sha1, zig, ziglang
- Language: Zig
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cryptography in Zig
A collection of cryptographic algorithms implemented from scratch in [Zig](https://ziglang.org/). Starting with SHA-1, with more to come.
## 📦 Current Implementations
- **SHA-1** - Secure Hash Algorithm 1 (FIPS 180-4)
## 🚧 Coming Soon
- SHA-256
- SipHash
- HMAC
## 🛠️ Building & Running
1. Ensure you have [Zig 0.11+](https://ziglang.org/download/) installed
2. Clone the repository:
```sh
git clone https://github.com/rohitanwar/Cryptography.git
cd Cryptography
```
3. Run the SHA-1 implementation:
```sh
zig run src/sha1.zig
```
> **⚠️ Warning**
> Currently the build.zig doesn't work. You need to manually enter the string to hash in the `src/sha1.zig` file
## 🤝 Contributing
Contributions are welcome! Please open an issue or PR if you:
- Find a bug
- Want to add another algorithm
- Have optimization suggestions