> For the complete documentation index, see [llms.txt](https://www.null-pointer.co.uk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.null-pointer.co.uk/sha-values.md).

# Sha values

## All sha values

```
find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum
```

## Docker&#x20;

### Image digest

```
docker inspect --format='{{index .RepoDigests 0}}' \
$IMAGE:$VERSION
```

### Container digest

```
docker inspect $(docker inspect $CONTAINER_ID --format='{{ .Image}}') \
--format '{{index .RepoDigests 0}}'
```

## JFrog

### Search by sha256

```
curl -H "Authorization: Bearer $JFROG_TOKEN" \
https://$HOSTNAME/artifactory/api/search/checksum\?sha256\=$SHA_VALUE
```

### Search by artifact

```
curl -sS -H "Authorization: Bearer $JFROG_TOKEN" \
https://$HOSTNAME/artifactory/api/storage/$REPO/$PACKAGE/$RESOURCE 
| jq '.checksums.sha1'
```

### Search for docker digest

```
curl -s -H "Authorization: Bearer $JFROG_TOKEN" \
https://$HOSTNAME/artifactory/api/storage/$REPO/$PACKAGE/$VERSION/manifest.json  
| jq '.checksums.sha256'
```
