Thureos-91 is a modern JavaScript protocol designed to shield and transport binary data as compactly as possible without compromising security. It combines a variable 13/14-bit Base-91 encoding with a dynamic XOR cipher layer and a mandatory CRC-16 integrity check.
- v1.1 (Secure Standard): Keys with salt, PBKDF2, and reordered alphabet. Recommended for all new implementations requiring an additional layer of security.
- v1.0 (Basic Security Standard): Support for original shields without breaking existing systems. Includes basic security with XOR Layer, CRC-16, and Radix-91 encryption.
Thureos-91 prioritizes Data Integrity and Privacy.
- Small Payloads: Due to the mandatory 4-character integrity signature (separator + 3-char CRC-16), short strings may result in a larger output compared to non-secure encodings.
- Large Payloads (>200 bytes): This is where Thureos-91 shines, becoming progressively more efficient than standard Base64 as the data size increases.
- Complexity: Password length does not affect output size.
| Feature | Base64 | Base85 | Common Base91 | Thureos-91 | Thureos-91 v1.1 (PBKDF2 with Salt) |
|---|---|---|---|---|---|
| Data Expansion | ~33.3% | ~25% | ~23% | ~23% (for >200B) | ~23% (for >200B) |
| Built-in Encryption | β No | β No | β No | β XOR Layer | β XOR Layer |
| Integrity Signature | β No | β No | β No | β CRC-16 | β CRC-16 |
| Error Detection | β No | β No | β No | β Yes | β Yes |
| Library Status | Standard | Various | Outdated/Legacy | Modern (ESM) | Modern (ESM) |
| Integrates PBKDF2 with salt | β No | β No | β No | β No | β Yes |
"Thureos-91 is unique when you need to obfuscate data, ensure zero tampering, and maintain maximum storage density."
- Vs. Common Encodings (B64, N85, B91): Thureos-91 is a modern ESM package that bundles Security + Integrity + High Density in a single object.
- Vs. Heavy Cryptography (AES-GCM): While AES is the gold standard, it adds significant fixed overhead (IV + Auth Tag). Thureos-91 provides privacy and validation with only a 4-byte total overhead (v1.0), making it superior for bandwidth-critical IoT or session tokens.
- Security Provenance: All releases are published using GitHub OIDC Trusted Publishers, ensuring that the NPM package matches the source code exactly.
- IoT & Edge Computing: Perfect for low-bandwidth devices where every bit counts.
- Session Tokens & Cookies: Generate compact tokens that remain tamper-proof on the client-side.
- NoSQL Databases: Obfuscate sensitive fields while maintaining high storage density.
npm install thureos-91- Thureos-91 v1.1 (PBKDF2 with Salt): The new standard uses asynchronous key derivation for maximum resistance against brute-force attacks.
import Thureos91 from 'thureos-91';
const secret = "Confidential Data 2026";
const password = "your-key-to-the-shield";
// Shield data (Returns a Salted Pack: Salt'Payload)
const shielded = await Thureos91.encode(secret, password, "v1.1");
// Recovery (Auto-detects version)
try {
const data = await Thureos91.decode(shielded, password);
console.log("Integrity Verified:", data);
} catch (e) {
console.error("Integrity Breach or wrong key.");
}- Thureos-91: Synchronous and lightweight for simple obfuscation. Includes basic security with XOR Layer, CRC-16, and Radix-91 encryption.
import Thureos91 from 'thureos-91';
const secret = "Sensitive Information 2026";
const key = "your-key-to-the-shield";
const shielded = Thureos91.encode(secret, key);
try {
const data = Thureos91.decode(shielded, key);
console.log("Access granted:", data);
} catch (e) {
console.error("Access error.");
}- Deterministic Fix: Fixed critical alphabet duplication for v1.0.x, allowing the use of Thureos 91 with basic security using an XOR layer, CRC-16, and Radix-91 encryption.
- Enhanced Security: PBKDF2 (100k iterations) + Salt.
- Auto Support: Built-in recovery for v1.0.x shields (use with caution).
- JSON Safe: Apostrophe (
') separator for zero-escape overhead.
Audit your data integrity and inspect the "Shielded Pack" structure in real-time at our web laboratory:
