---
title: Why You Should Use an Immutable Database To Share Structured Data
description: A new technology approach has come up to share structured data securely by using an immutable data store, like immudb Vault (see https://vault.immudb.io). 
image: https://codenotary.com/hubfs/immudbVaultLogoverticalDark.svg
---

**$ protect --distro linux --machines 25 --free**

[Start now](https://apps.codenotary.com/linux)

[![cn-logo-black-nobg](https://codenotary.com/hubfs/cn-logo-black-nobg.svg)](https://codenotary.com/)

- Product
  
  #### [![AgentMon Start](https://codenotary.com/hubfs/AgentMon%20Start.svg) **AgentMon Start** Organization-wide AI agent spend, security and device fleet TRY NOW →](https://apps.codenotary.com/agentmon-start)
  
  #### [![AgentMon for Enterprise](https://codenotary.com/hubfs/AgentMon%20for%20Enterprise.svg) **AgentMon** Currently monitors more \> 7 million agent interactions/day. TRY NOW →](https://codenotary.com/agentmon)
  
  #### [![AgentX](https://codenotary.com/hubfs/AgentX.svg) **AgentX** Agentic network control middleware. TRY NOW →](https://codenotary.com/agent-network-control)
  
  #### [![Autonomous Security](https://codenotary.com/hubfs/Autonomous%20Security.svg) **Autonomous Security** AI Agents keep your servers secure. TRY NOW →](https://codenotary.com/trust)
- Use Cases
  
  #### [**AI Agent Risk Monitoring** Continuous oversight of autonomous agents across every environment.](https://codenotary.com/use-cases#risk)
  
  #### [**Autonomous Security Operations** Self-healing defenses that detect, contain, and remediate threats.](https://codenotary.com/use-cases#agentops)
  
  #### [**AI Coding Governance & Performance Monitoring** AI-generated code reviewed, tracked, and held to quality standards.](https://codenotary.com/use-cases#performance)
  
  #### [**AI Tool Cost & Usage Optimization** Spend and consumption optimized across every AI service in use.](https://codenotary.com/use-cases#cost)
  
  #### [**AI Tool Security & Policy Enforcement** Approved AI usage enforced with guardrails and policy controls.](https://codenotary.com/use-cases#security#security)
  
  #### [**Shadow AI Governance** Unsanctioned AI tools discovered, surfaced, and brought under control.](https://codenotary.com/use-cases#shadowit)
- [Blog](https://codenotary.com/blog)
- [Press](https://codenotary.com/press)
- Resources
  
  #### [**Integrations** Connect with your favorite tools and platforms. LEARN MORE →](https://codenotary.com/integrations)
  
  #### [**Support** Get help from our dedicated support team. GET HELP →](https://support.codenotary.com)
  
  #### [**Success Stories** Read how customers achieve their goals. READ MORE →](https://codenotary.com/success)
  
  #### [**Learn** Access documentation and learning resources. EXPLORE →](https://codenotary.com/learn)

[Login](https://apps.codenotary.com/auth/login)

[All posts](https://codenotary.com/blog/all)

 Jul 10, 2023

# Why You Should Use an Immutable Database To Share Structured Data

![Picture of Moshe](https://app.hubspot.com/settings/avatar/d41d8cd98f00b204e9800998ecf8427e) By  [Moshe](https://codenotary.com/blog/author/moshe)  ·   2 minute read

In today's age of pervasively active bad actors, data security and privacy have become the number one criteria when implementing business solutions. When it comes to sharing data, there are different approaches that can be taken to ensure its confidentiality and integrity. Until today the traditional approach to protected shared data by means of encryption mechanisms such as GPG or other public/private key approaches.

![immudbVaultLogoverticalDark](https://codenotary.com/hubfs/immudbVaultLogoverticalDark.svg)

However, in recent years a new technology approach has come up to share structured data securely by using an immutable data store, like immudb Vault (see [https://vault.immudb.io](https://vault.immudb.io)). 

While both approaches aim to protect data, they differ substantially.  While encryption protects data from prying eyes, immutable databases protect data from tampering. In this blog post, we will explore the difference between sharing encrypted data and using an immutable data store to share data.

## Sharing Encrypted Data

Encryption is a widely used technique to secure data during transmission by converting plain text into ciphertext using an encryption algorithm and a secret key. Technologies like GPG and other private/public key schemes are often used. The encrypted data can only be decrypted and accessed by authorized parties who possess the corresponding decryption key. When transmitting encrypted data, the data remains protected even if it falls into the wrong hands.

Even if the data is intercepted or accessed by unauthorized individuals, they will not be able to decipher its contents without the decryption key. This makes sharing encrypted data an effective method for transmitting sensitive information, such as personal data, financial records, or trade secrets.

However, sharing encrypted data also has its limitations. It requires the sender and recipient to have a secure channel for exchanging encryption keys. If the encryption keys are compromised or mishandled, the data's security can be compromised. Also, the sender and receiver must somehow transmit keys before transmitting data. With some technologies, previously sent data cannot be recovered with newly changed keys, so a list of previous keys much be kept. 

Additionally, sharing encrypted data can be cumbersome, as both parties need to have the necessary encryption and decryption tools or software, as well as providing secure key management software solutions. 

## Using an Immutable Data Store

An immutable data store such as immudb Vault, on the other hand, is a storage system that prevents any modifications or deletions to the stored data. Once data is written to an immutable data store, it becomes fixed and cannot be altered. Cryptographic techniques, such as hash functions and digital signatures, are used to to guarantee the integrity of all previously stored data records in the database. This ensures the consistency and authenticity of the data, as any changes or tampering attempts would be immediately detectable.

Unlike blockchains, immutable data vaults can store all kinds of data such as business records, whole applications, media files and even videos. Also unlike blockchains, immutable data vaults can process millions of records per second. 

One of the main reasons why organizations use an immutable data store is the auditable trail of data changes. Every modification or addition to the data is recorded and can be traced back to its source. This makes it ideal for scenarios where data provenance and accountability are important, such as in financial transactions or supply chain management.

Quite often businesses encrypt their data which is then stored in an immutable data store such as immudb vault. This way, the data is protected during the transmission and also at rest, which results in end to end security for their most critical data. 

## Conclusion:

In summary, sharing encrypted data and using an immutable data store are two distinct approaches to secure data sharing, which complement each other very well. Encryption focuses the confidentiality of the data and ensuring that only authorized parties can access it. On the other hand, using an immutable data store emphasizes data integrity and immutability, making it ideal for scenarios where data consistency and transparency are critical. Both should be used together for maximum protection. 

**Code Example**

Here is an example of code that accomplishes both the encryption and the storing of a document inside immudb vault:

[https://gist.github.com/vchaindz/a213c2030993b2ddea006f65851bc76b](https://gist.github.com/vchaindz/a213c2030993b2ddea006f65851bc76b)

[![Share on twitter](https://4059529.fs1.hubspotusercontent-na1.net/hub/4059529/hubfs/01-marketplace/twitter-color.png?width=35&height=35&name=twitter-color.png)](https://twitter.com/intent/tweet?original_referer=https://codenotary.com/blog/why-you-should-use-an-immutable-database-to-share-structured-data&utm_medium=social&utm_source=twitter&url=https://codenotary.com/blog/why-you-should-use-an-immutable-database-to-share-structured-data&utm_medium=social&utm_source=twitter&source=tweetbutton&text=) [![Share on facebook](https://4059529.fs1.hubspotusercontent-na1.net/hub/4059529/hubfs/01-marketplace/facebook-color.png?width=35&height=35&name=facebook-color.png)](http://www.facebook.com/share.php?u=https://codenotary.com/blog/why-you-should-use-an-immutable-database-to-share-structured-data&utm_medium=social&utm_source=facebook) [![Share on linkedin](https://4059529.fs1.hubspotusercontent-na1.net/hub/4059529/hubfs/01-marketplace/linkedin-color.png?width=35&height=35&name=linkedin-color.png)](http://www.linkedin.com/shareArticle?mini=true&url=https://codenotary.com/blog/why-you-should-use-an-immutable-database-to-share-structured-data&utm_medium=social&utm_source=linkedin) [![Share on pinterest](https://4059529.fs1.hubspotusercontent-na1.net/hub/4059529/hubfs/pinterest.jpg?width=35&height=35&name=pinterest.jpg)](http://pinterest.com/pin/create/button/?url=https://codenotary.com/blog/why-you-should-use-an-immutable-database-to-share-structured-data&utm_medium=social&utm_source=pinterest&media=)

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Moshe",
    "url" : "https://codenotary.com/blog/author/moshe"
  },
  "dateModified" : "2023-07-10T15:23:51.289Z",
  "datePublished" : "2023-07-10T15:23:51.000Z",
  "headline" : "Why You Should Use an Immutable Database To Share Structured Data",
  "image" : [ "https://codenotary.com/hubfs/immudbVaultLogoverticalDark.svg" ],
  "mainEntityOfPage" : {
    "@id" : "https://codenotary.com/blog/why-you-should-use-an-immutable-database-to-share-structured-data",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://codenotary.com/hubfs/logo-light.svg"
    },
    "name" : "Codenotary, Inc."
  }
}
```

```json
{
  "@context" : "http://schema.org",
  "@type" : "Article",
  "author" : {
    "@type" : "Person",
    "name" : [ "Moshe" ],
    "url" : "https://codenotary.com/blog/author/moshe"
  },
  "datePublished" : "2023-07-10T15:23:51+0000",
  "description" : "A new technology approach has come up to share structured data securely by using an immutable data store, like immudb Vault (see https://vault.immudb.io). ",
  "headline" : "Why You Should Use an Immutable Database To Share Structured Data",
  "image" : "https://23873599.fs1.hubspotusercontent-na1.net/hubfs/23873599/immudbVaultLogoverticalDark.svg",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://cdn2.hubspot.net/hubfs/23873599/logo-light.svg"
    },
    "name" : ""
  },
  "url" : "https://codenotary.com/blog/why-you-should-use-an-immutable-database-to-share-structured-data"
}
```