Encryption and Security
DÆTA implements cutting-edge encryption and security protocols to protect the privacy and integrity of all stored data.
Encryption Layers
AES-256-GCM for file encryption
Unique key generated for each file
TLS 1.3 for all network communications
Additional encryption applied to individual file shards
graph TD
A[Master Key] -->|Derives| B(File Encryption Key)
A -->|Encrypts| C(Metadata Encryption Key)
B -->|Encrypts| D[File Content]
C -->|Encrypts| E[File Metadata]
A -->|Securely Stored| F{User's Wallet}
Security Measures
Verify data integrity without revealing content.
Encryption Process
from cryptography.hazmat.primitives.ciphers.aead import AESGCM
import os
def encrypt_file(file_path, encryption_key):
# Generate a random 96-bit IV
iv = os.urandom(12)
# Create an AES-GCM cipher instance
aesgcm = AESGCM(encryption_key)
with open(file_path, 'rb') as file:
plaintext = file.read()
# Encrypt the file content
ciphertext = aesgcm.encrypt(iv, plaintext, None)
# Prepend the IV to the ciphertext
encrypted_data = iv + ciphertext
return encrypted_data
# Usage
file_path = '/path/to/sensitive_document.pdf'
encryption_key = AESGCM.generate_key(bit_length=256)
encrypted_file = encrypt_file(file_path, encryption_key)
# The encrypted_file can now be safely split into shards and distributed
By implementing these core concepts, DÆTA provides a robust, secure and efficient decentralized storage solution that addresses the limitations of traditional centralized systems while leveraging the power of distributed networks.
Last updated