> For the complete documentation index, see [llms.txt](https://erc-cash.gitbook.io/erc-cash/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://erc-cash.gitbook.io/erc-cash/how-to-generate-id.md).

# How to generate id

## Golang

```go
address := "myaddress"
timestamp := time.Now().Unix()
sum := sha256.Sum256([]byte(fmt.Sprintf("%s%d", address, timestamp)))
id := fmt.Sprintf("0x%x", sum)
```

## JaveScript

```javascript
const { createHash } = require('crypto');

const address = "myaddress"
const timestamp = Date.now()
const content = address + timestamp
const id = "0x" + createHash('sha256').update(content).digest('hex');
```

## Online sha256 website

If you are not familiar with the code, you can go to some sha256 online websites, enter your address and time, you can generate hash, don't forget to add '0x'.&#x20;

online sha256

<https://emn178.github.io/online-tools/sha256.html>
