Skip to content

Military-grade encryption for Roblox implementing Veracrypt's triple-cascade cipher system in Roblox Luau.

License

Notifications You must be signed in to change notification settings

ssynical/triplesec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TripleSec

Military-grade encryption for Roblox. Triple-cascade ciphers, PBKDF2 key derivation, and XTS mode.


Features

  • 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

Installation

  1. Download/clone this repository
  2. 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
    
  3. Require in your scripts:
    local TripleSec = require(game:GetService("ServerStorage").INIT.TripleSec)

Performance Guide


Iteration Recommendations

Iterations Time (SHA256) Time (SHA512) Security
1,000 ~0.5s ~1s ⚠️ Minimum
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

Hash Function Performance

  • 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

Cipher Performance

  • Single cipher (AES/Serpent/Twofish): Fastest
  • Double cascade: ~2x slower
  • Triple cascade: ~3x slower (maximum security)

Security Notes

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.


Documentation


Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature (i.e., yielding support) branch
  3. Add tests for new functionality (please provide in the PR)
  4. Submit the PR

License

MIT License - see LICENSE for details


Disclaimer

This library is provided as-is without warranty. While it provides industry-standard algorithms, this particular source code has not been professionally audited.


Acknowledgments

  • VeraCrypt - Algorithm specifications and security standards
  • NIST - AES, SHA-2 standards

Made with ❤️ | Last updated 11/01/2026

About

Military-grade encryption for Roblox implementing Veracrypt's triple-cascade cipher system in Roblox Luau.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages