These docs are for v0.12. Click to read the latest docs for v0.16.

Create hashes with the hash property on Application.

app.hash.make("test")

Key

The optional key provides an additional layer of security on your hashes.

app.hash.key = "my-secret-key"
app.hash.make("test")