> For the complete documentation index, see [llms.txt](https://docs.transferchain.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.transferchain.io/core-concepts/cryptography/encryption.md).

# Encryption

Encryption in TransferChain

Encryption is a fundamental component of TransferChain's zero-knowledge security architecture, protecting sensitive information throughout its lifecycle, from initial creation and transmission to storage and authorized retrieval.

TransferChain combines symmetric encryption, asymmetric cryptography, secure key management, and post-quantum key establishment to provide end-to-end data protection without requiring the underlying infrastructure to access plaintext information.

Unlike conventional encryption architectures that rely on centrally managed cryptographic keys, TransferChain performs encryption and decryption within authorized client environments, ensuring that sensitive data remains protected independently of the storage or transmission infrastructure.

### Hybrid Encryption Architecture

TransferChain utilizes a hybrid cryptographic architecture that combines symmetric and asymmetric encryption mechanisms to achieve security, performance, and controlled data access.

These mechanisms serve complementary purposes:

* **Symmetric Encryption:** Advanced Encryption Standard (AES-256) protects the actual contents of files and other sensitive information. Symmetric encryption is computationally efficient and suitable for encrypting large volumes of data.
* **Asymmetric Cryptography:** Public and private key mechanisms support secure key establishment, cryptographic authentication, and controlled access between authorized parties.
* **Cryptographic Key Derivation:** Key derivation mechanisms, including PBKDF2 where applicable, provide additional protection for password-derived cryptographic material.
* **Digital Signatures:** Cryptographic signing mechanisms, including Ed25519, support verification of identity, authenticity, and transaction integrity.

In a hybrid encryption workflow, data is protected using symmetric encryption, while asymmetric cryptographic mechanisms enable the necessary key material to be securely established or made accessible to authorized recipients.

This approach combines the performance advantages of symmetric encryption with the security and flexibility of public-key cryptography.

### Client-Side End-to-End Encryption

TransferChain employs client-side end-to-end encryption to ensure that sensitive information is protected before entering external infrastructure.

When a user or application initiates a storage or transfer operation, the data is encrypted within the originating client environment before being transmitted.

The resulting ciphertext can then be fragmented and distributed across multiple storage destinations using TransferChain's distributed storage architecture.

The encryption process follows several fundamental principles:

1. **Local Encryption:** The original data is encrypted within the authorized client environment before transmission.
2. **Encrypted Fragmentation:** Encrypted data is divided into smaller fragments for distribution across storage nodes.
3. **Protected Transmission:** Encrypted fragments are transmitted through secure communication channels to their assigned destinations.
4. **Controlled Retrieval:** Authorized users or applications retrieve the required encrypted fragments according to their access permissions.
5. **Client-Side Decryption:** Once the encrypted data has been reconstructed and its integrity verified, decryption takes place within the authorized client environment.

This process ensures that TransferChain's underlying storage infrastructure does not need access to plaintext data or the cryptographic secrets required to decrypt it.

### Zero-Knowledge Architecture

TransferChain is designed around a zero-knowledge security model in which the service provider does not possess the information required to decrypt user content.

Traditional cloud encryption models often rely on encryption keys managed by the storage or service provider. Although these models can protect stored information, the provider may retain the technical ability to decrypt customer data.

TransferChain separates content encryption and key ownership from the infrastructure responsible for storing and distributing encrypted information.

Under this architecture:

* Encryption and decryption occur within authorized client environments.
* TransferChain infrastructure processes encrypted data without requiring access to its plaintext contents.
* Storage providers receive encrypted fragments rather than complete readable datasets.
* Private cryptographic keys remain under the control of authorized users or applications.
* Blockchain-based authorization and protected metadata support controlled access to distributed information.

As a result, compromising an individual storage provider does not automatically expose readable user content.

The zero-knowledge model applies to the confidentiality of protected content and cryptographic secrets. Operational metadata required to deliver and manage the service is handled separately from the plaintext contents of encrypted data.

### Client-Side Key Management

Cryptographic key management plays a critical role in maintaining the confidentiality of encrypted information.

TransferChain generates and manages sensitive cryptographic key material within authorized client environments rather than relying on centrally accessible plaintext private keys.

This separation ensures that the underlying service infrastructure does not possess the private cryptographic material necessary to independently decrypt protected user content.

#### Key Generation & Protection

Cryptographic keys are generated or derived using cryptographically secure mechanisms appropriate to their intended purpose.

Private keys are protected within the client environment, while public keys can be used for cryptographic operations that require interaction with other users, applications, or network components.

Sensitive key material can be protected through encryption and password-based key derivation.

#### Key Exchange & Recipient Access

TransferChain incorporates cryptographic key exchange mechanisms to enable secure communication and data sharing between authorized parties.

Protocols such as Extended Triple Diffie-Hellman (X3DH) support authenticated key agreement in applicable communication workflows.

When information is shared, cryptographic mechanisms enable authorized recipients to obtain the key material required for decryption without exposing the underlying private keys.

Digital signatures can additionally verify the authenticity and integrity of signed operations.

#### Account Recovery

TransferChain supports cryptographic account recovery using a recovery phrase based on the BIP39 mnemonic standard.

The 24-word recovery phrase provides a mechanism for restoring the cryptographic identity associated with an account when access to its original device or local key material is lost.

Recovery information must be securely protected, as possession of the necessary recovery credentials may enable restoration of access to protected data.

### Post-Quantum Cryptography

TransferChain extends its cryptographic architecture with post-quantum key establishment mechanisms designed to address emerging threats from quantum computing.

Traditional asymmetric cryptographic algorithms, including commonly used elliptic-curve mechanisms, rely on mathematical problems that could become vulnerable to sufficiently powerful quantum computers.

This creates a long-term confidentiality concern commonly known as **Harvest Now, Decrypt Later (HNDL)**, in which encrypted communications are collected today with the intention of decrypting them using future capabilities.

#### Hybrid Post-Quantum Key Establishment

TransferChain has introduced ML-KEM-768, the Module-Lattice-Based Key-Encapsulation Mechanism standardized by the National Institute of Standards and Technology (NIST) under FIPS 203.

ML-KEM-768 is designed to provide key-establishment security based on mathematical problems believed to be resistant to known classical and quantum attacks.

TransferChain's hybrid approach combines:

* **Classical Elliptic-Curve Diffie-Hellman (ECDH):** Provides established classical key-agreement capabilities.
* **ML-KEM-768:** Introduces a standardized post-quantum key-encapsulation mechanism.
* **Hybrid Key Derivation:** Combines cryptographic secrets from both mechanisms to establish shared encryption key material.

By combining classical and post-quantum mechanisms, the confidentiality of an established secret need not depend exclusively on the security of traditional elliptic-curve cryptography.

This approach is designed to strengthen protection against future quantum attacks targeting key establishment, while preserving compatibility with established cryptographic principles.

Post-quantum key establishment complements symmetric data encryption rather than replacing it. The specific protections available depend on the protocol, cryptographic workflow, and implementation version.

### Encryption at Rest & Encryption in Transit

TransferChain protects sensitive information both while it is stored and while it is transmitted between systems.

These protections operate at different layers and serve complementary security purposes.

#### Encryption at Rest

Data stored through TransferChain remains encrypted throughout its storage lifecycle.

TransferChain utilizes AES-256 encryption, including Galois/Counter Mode (GCM) and Counter Mode (CTR) in applicable cryptographic operations.

AES-GCM provides authenticated encryption, combining confidentiality with cryptographic integrity verification.

AES-CTR provides confidentiality and requires complementary authentication or integrity protection to detect unauthorized modifications.

Encrypted data is subsequently fragmented and distributed across configured storage destinations.

This means storage infrastructure can hold and retrieve encrypted fragments without requiring access to the original plaintext information.

#### Encryption in Transit

TransferChain uses Transport Layer Security (TLS), including TLS 1.2 and TLS 1.3, to protect supported communication channels between clients, services, and infrastructure components.

In addition to transport-layer protection, TransferChain's client-side encryption ensures that protected application data remains encrypted independently of the underlying communication channel.

These mechanisms provide complementary security layers:

* **Transport Encryption:** Protects communication channels against interception and tampering during transmission.
* **End-to-End Content Encryption:** Protects the actual information being transmitted, independently of transport security.
* **Encrypted Data Distribution:** Ensures that the storage and distribution infrastructure processes encrypted fragments rather than readable content.

Consequently, TransferChain does not depend exclusively on TLS to maintain the confidentiality of sensitive application data.

### Cryptographic Integrity & Authentication

Confidentiality is only one component of cryptographic security. TransferChain also employs mechanisms designed to verify the authenticity and integrity of protected information and associated operations.

Cryptographic integrity mechanisms help detect unauthorized modification of encrypted data.

Digital signatures support verification of signed transactions and identity-related operations, while blockchain-based authorization provides an additional layer for validating and recording supported activities.

These protections serve distinct purposes:

* **Confidentiality:** Prevents unauthorized parties from reading protected information.
* **Integrity:** Enables detection of unauthorized modifications to protected data.
* **Authentication:** Supports verification of cryptographic identities and signed operations.
* **Authorization:** Determines which users or applications are permitted to perform specific operations.

Together, these mechanisms help ensure that sensitive information is accessed and processed according to established cryptographic permissions.

### Encryption Beyond Traditional Cloud Security

TransferChain's encryption architecture is designed to separate data confidentiality from infrastructure ownership.

By combining client-side encryption, hybrid cryptography, protected key management, post-quantum key establishment, and distributed storage, TransferChain reduces the dependency on any single infrastructure component for protecting sensitive information.

Organizations can therefore deploy TransferChain across cloud, on-premises, and hybrid environments while maintaining a consistent approach to cryptographic data protection.

This architecture forms the foundation of TransferChain's zero-knowledge protocol, enabling secure storage, data transfer, and application integration without requiring storage providers to possess the plaintext contents of protected data.
