Files
hugo/docs/content/en/functions/encoding/HexDecode.md
T
Bjørn Erik Pedersen dfb35dcd7a tpl/crypto: Add crypto.Hash
Add a generic crypto.Hash template function returning the hex-encoded
checksum of a string using one of md5, sha1, sha256 (default), sha384 or
sha512. The supported algorithms match those used for the SRI hash in
.Data.Integrity on fingerprinted resources, so an SRI hash can be built
by composing with encoding.HexDecode and encoding.Base64Encode.

Fixes #15072

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-03 18:03:05 +02:00

338 B

title, description, categories, keywords, params
title description categories keywords params
encoding.HexDecode Returns the hexadecimal decoding of the given content.
functions_and_methods
aliases returnType signatures
string
encoding.HexDecode INPUT
{{ "48656c6c6f20776f726c64" | encoding.HexDecode }} → Hello world