# pickle

Source: https://zotonic.com/docs/1933/pickle

URI: https://zotonic.com/id/1933

Language: en



Pickle an Erlang value so that it can be safely submitted with a form.

The Erlang value is encoded using erlang:term\_to\_binary/1 and signed with the site’s secret key. In Erlang the value can be unpacked using z\_utils:depickle/2

Usage:

```django
<input type="hidden" name="confirm" value="{{ 'Hello world' | pickle }}" />
```

This will generate something like:

```django
<input type="hidden" name="confirm" value="duZTXcXaxuruD3dhpt-rxWokrhuDbQAAAAtIZWxsbyB3b3JsZA" />
```

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1933?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1933?language=en>)
