# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.uproofs.apio.cc/tutorials/encrypt-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
