Military-grade encryption for Roblox. Triple-cascade ciphers, PBKDF2 key derivation, and XTS mode.
- Triple-Cascade Encryption: AES-256 -> Twofish-256 -> Serpent-256 (VeraCrypt standard)
- XTS Mode: Proper disk encryption mode with sector-level security
- PBKDF2: Industry-standard key derivation with configurable iterations
- Multiple Hash Functions: SHA-256, SHA-512, Whirlpool
- Volume Encryption: Full VeraCrypt-compatible volume management
- Pure Luau: Native-optimized, no external dependencies
- Download/clone this repository
- Place the folder structure in your game:
ServerStorage/ ├── Modules/ │ ├── AES.lua │ ├── BitOps.lua │ ├── CipherCascade.lua │ ├── Entropy.lua │ ├── HMAC.lua │ ├── PBKDF2.lua │ ├── Serpent.lua │ ├── SHA256.lua │ ├── SHA512.lua │ ├── Twofish.lua │ ├── Whirlpool.lua │ └── XTS.lua └── INIT/ └── TripleSec.lua - Require in your scripts:
local TripleSec = require(game:GetService("ServerStorage").INIT.TripleSec)
| Iterations | Time (SHA256) | Time (SHA512) | Security |
|---|---|---|---|
| 1,000 | ~0.5s | ~1s | |
| 5,000 | ~2.5s | ~5s | ✅ Good |
| 10,000 | ~5s | ~10s | ✅ Strong |
| 50,000 | ~25s | ~50s | ⭐ Very Strong |
| 100,000 | ~50s | ~100s | ⭐ Maximum |
- Iterations above 1000 may cause script timeouts in Roblox. It depends on your device specifications and individual settings
- SHA-256: ~2x faster than SHA-512 (recommended for most use cases)
- SHA-512: Maximum security, slower performance
- Whirlpool: Alternative hash function, similar speed to SHA-512
- Single cipher (AES/Serpent/Twofish): Fastest
- Double cascade: ~2x slower
- Triple cascade: ~3x slower (maximum security)
This module provides:
- VeraCrypt-standard algorithms and implementation
- Triple-cascade provides defense-in-depth
- Proper XTS mode for sector-based encryption
- PBKDF2 prevents rainbow table attacks
- Cryptographically secure random number generation
However, Roblox memory is not secure. Keys exist in memory and could theoretically be accessed by a third party.
- TripleSec - Main encryption interface
- AES - AES-256 cipher
- Serpent - Serpent-256 cipher
- Twofish - Twofish-256 cipher
- CipherCascade - Cascade encryption
- XTS - XTS encryption mode
- PBKDF2 - Key derivation
- SHA256 - SHA-256 hash
- SHA512 - SHA-512 hash
- Whirlpool - Whirlpool hash
- HMAC - HMAC authentication
- BitOps - Bit operations
- Entropy - Random number generation
Contributions are welcome! Please:
- Fork the repository
- Create a feature (i.e., yielding support) branch
- Add tests for new functionality (please provide in the PR)
- Submit the PR
MIT License - see LICENSE for details
This library is provided as-is without warranty. While it provides industry-standard algorithms, this particular source code has not been professionally audited.
- VeraCrypt - Algorithm specifications and security standards
- NIST - AES, SHA-2 standards
Made with ❤️ | Last updated 11/01/2026