# 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](https://2582885197-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-McVq2fQ-k_v186Ven9k%2F-Meeu-yEJ3zb6gaD44RD%2F-MeeyB3DJOTZV3ng0Sw8%2Fimage.png?alt=media\&token=c32e690e-7585-4bb4-80e1-ff74aa45939a)

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

![](https://2582885197-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-McVq2fQ-k_v186Ven9k%2F-Meeu-yEJ3zb6gaD44RD%2F-MeexX57qvlFiM9wIo9L%2Fimage.png?alt=media\&token=03116afc-0f45-43bd-bb1c-7c65bb25c636)

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:

![](https://2582885197-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-McVq2fQ-k_v186Ven9k%2F-Meeu-yEJ3zb6gaD44RD%2F-MeeztXCuVzW__l49bcS%2Fimage.png?alt=media\&token=8dec03d8-33ea-4fd3-afc2-ee01255a4399)

If the user provide the password:

![](https://2582885197-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-McVq2fQ-k_v186Ven9k%2F-Meeu-yEJ3zb6gaD44RD%2F-Mef-N9pMdTr-5AzKmaX%2Fimage.png?alt=media\&token=b1db5f4a-9e62-4730-9617-010d710756ba)
