# Data Encryption

<figure><img src="https://1965619156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVTbs9qAUKtW5fu3rCJvO%2Fuploads%2FoV72oRc9vrcE87jE0lHU%2Fimage.png?alt=media&#x26;token=4bf6e7ed-b6e7-4953-b41f-493c0a9dd5ea" alt=""><figcaption></figcaption></figure>

Before data is stored in IPFS, it must be encrypted to ensure the patient is the only one able to access the clear-text data. To make sure Jori is able to be useful for providers as well as&#x20;

**AES 256 Encryption**: The clear text is encrypted using AES (Advanced Encryption Standard) with a 256-bit key, which is a strong encryption standard used worldwide. The AES 256 encrypted data is intended for sharing with providers, which likely means that it is meant to be accessed by third-party service providers or partners who have been granted permission to view the data. This could also include the patient themselves, implying that they would have access to their data in a readable form after decryption with the appropriate key.

**Homomorphic Encryption**: The clear text is also encrypted using homomorphic encryption. This type of encryption allows for computations to be performed on the encrypted data without needing to decrypt it first. The results of such computations remain encrypted and can only be decrypted by someone with the appropriate private key. This is useful for permissionless compute, which means that even those without access to the private key can perform certain types of analysis or contribute to the training of AI models without actually seeing the data in its decrypted form. This helps in preserving privacy and security while still being able to utilize the data for computational purposes.

This system is designed to ensure data security and privacy while enabling data utility for different stakeholders. By using two types of encryption, it allows for secure data sharing with trusted parties as well as the ability to perform analysis and AI training without compromising the confidentiality of the underlying data.

