# Hash Data Example

> Learn how to hash data for secure storage and verification with API Maker examples.

Source: https://docs.apimaker.dev/v1/examples/sys/system/hash.html

`g.sys.system.hash` calls the [hash data system API](https://docs.apimaker.dev/v1/docs/apis-all/system-apis/system-generated-hash-data-api.html) from your code, whatever the settings of that API say about HTTP callers.

### Hash System API

Get hash of the given data using the global object 'g'.
```ts
let hashData = await g.sys.system.hash({ "Name": "Alice" });
```

## Related

- [Hash data system API](https://docs.apimaker.dev/v1/docs/apis-all/system-apis/system-generated-hash-data-api.html) · [All system APIs from code](https://docs.apimaker.dev/v1/examples/sys/system/system.html) · [The global object g](https://docs.apimaker.dev/v1/docs/pre-defined-terms/global-object-g.html)
