@@ -1125,13 +1125,13 @@ <h3>How It Works</h3>
11251125 < h3 > Key Obfuscation Modes</ h3 >
11261126 < div class ="modes-grid ">
11271127 < div class ="mode-card recommended ">
1128- < h4 > 🌟 FlatNamespace (RECOMMENDED )</ h4 >
1128+ < h4 > 🌟 FlatNamespace (DEFAULT )</ h4 >
11291129 < p > Complete structure hiding. Server sees only random CID-like hashes. Inspired by WNFS and Peergos.</ p >
11301130 < code > /photos/beach.jpg → QmX7a8f3e2d1c9b4a5</ code >
11311131 < small > No prefixes, no structure hints. Directory tree stored in encrypted PrivateForest index.</ small >
11321132 </ div >
11331133 < div class ="mode-card ">
1134- < h4 > DeterministicHash (Default) </ h4 >
1134+ < h4 > DeterministicHash</ h4 >
11351135 < p > Same file path → Same storage key. Allows retrieval without local index.</ p >
11361136 < code > /photos/beach.jpg → e/a7c3f9b2e8d14a6f</ code >
11371137 </ div >
@@ -1153,8 +1153,8 @@ <h3>Code Example</h3>
11531153 < div class ="code-snippet ">
11541154 < pre > use fula_client::{EncryptedClient, EncryptionConfig, KeyObfuscation};
11551155
1156- // RECOMMENDED : FlatNamespace for complete structure hiding
1157- let config = EncryptionConfig::new_flat_namespace ();
1156+ // DEFAULT : FlatNamespace for complete structure hiding
1157+ let encryption = EncryptionConfig::new (); // FlatNamespace by default!
11581158let client = EncryptedClient::new(config, encryption)?;
11591159
11601160// Upload - server sees: QmX7a8f3e2d1c9b4a5e6f7d8...
@@ -1166,18 +1166,19 @@ <h3>Code Example</h3>
11661166// Server sees NOTHING about your folder structure!
11671167
11681168// ─────────────────────────────────────────────────────────
1169- // Alternative modes:
1169+ // Alternative modes (for specific use cases) :
11701170// ─────────────────────────────────────────────────────────
11711171
1172- // Default: deterministic hashing (reveals 'e/' prefix)
1173- let config = EncryptionConfig::new();
1172+ // DeterministicHash - same path = same key, no local index needed
1173+ let encryption = EncryptionConfig::new()
1174+ .with_obfuscation_mode(KeyObfuscation::DeterministicHash);
11741175
1175- // Customize obfuscation mode
1176- let config = EncryptionConfig::new()
1176+ // PreserveStructure - keeps folder paths visible
1177+ let encryption = EncryptionConfig::new()
11771178 .with_obfuscation_mode(KeyObfuscation::PreserveStructure);
11781179
1179- // Disable metadata privacy (not recommended)
1180- let config = EncryptionConfig::new_without_privacy();
1180+ // Disable metadata privacy entirely (not recommended)
1181+ let encryption = EncryptionConfig::new_without_privacy();
11811182
11821183// Get full metadata including original filename
11831184let info = client.get_object_with_private_metadata(bucket, storage_key).await?;
0 commit comments