> For the complete documentation index, see [llms.txt](https://docs.uproofs.apio.cc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uproofs.apio.cc/tutorials/encrypt-data.md).

# Encrypt data

## Abstract

When you use Public Blockchain, what you put in Blockchain is public. UPROOFS to guarantee data writes in Blockchain:

* UUID of the Proofs (that helps to recover the public page);
* HASH of the data packet (that helps to verify data timestamped).

Through Explorer someone can use the Smart Contract address to see all the data exchange through UPROOF. Here a screenshot of the list of Transaction made through UPROOFS:

![List of Transactions](/files/-MeeyB3DJOTZV3ng0Sw8)

Clicking on one transaction User can see the Transaction Details, here a screenshot:

![](/files/-MeexX57qvlFiM9wIo9L)

From here a User can use UUID to see proofs of other users. This is not a problem if data is public...

If you use UPROOFS to timestamp private data you can use Encrypt Functionalities.

## 🔐 How to Encrypt a Proof

You can insert password in your object to encrypt the proof

#### ENDPOINT <a href="#id-95fc742e-5597-4ac8-af87-2615b39f459d" id="id-95fc742e-5597-4ac8-af87-2615b39f459d"></a>

```
POST "/proofs"
```

#### BODY <a href="#dbd9fa12-17b5-4b33-a8f4-94f982ecdf12" id="dbd9fa12-17b5-4b33-a8f4-94f982ecdf12"></a>

```javascript
{
    "assetId": "fe602d7f-b807-4d65-bc29-23b4cea58bb7",
    "password": "12345",
    "data": {
        "timestamp": "those",
        "data": "4ever"
    }
}
```

## Verify an Encrypted Proof <a href="#dfdb509c-0193-49ac-b497-3a15b564e549" id="dfdb509c-0193-49ac-b497-3a15b564e549"></a>

Here the Encrypted Proof if the user cannot provide the password:

![](/files/-MeeztXCuVzW__l49bcS)

If the user provide the password:

![](/files/-Mef-N9pMdTr-5AzKmaX)
