HMAC256(1)
π HMAC256(1) β Libgcrypt's manual page, bestie π
π NAME π
hmac256 β Compute an HMAC-SHA-256 MAC. That's literally the whole assignment β¨
π¦ SYNOPSIS π¦
hmac256 [--binary] key [FILENAME]
πΈ DESCRIPTION πΈ
okay so hmac256 is a standalone HMAC-SHA-256 implementation used to compute an HMAC-SHA-256 message authentication code. iconic behavior, fr fr.
It was originally developed as a second implementation for Libgcrypt so you can compare it against the primary implementation and use it for internal consistency checks. slay for that specific job, ngl.
π¨ big warning bestie: it should not be used for sensitive data because no mechanisms to clear the stack etc are used. like, this is not giving secure-vault main character energy. periodt.
The code has been written in a highly portable manner and requires only a few standard definitions to be provided in a config.h file. lowkey cute, highkey portable.
hmac256 is commonly invoked as
hmac256 "This is my key" foo.txt
This computes the MAC on the file foo.txt using the key given on the command line. yes bestie, key on the command line, file on the side π
β¨ OPTIONS β¨
hmac256 understands these options:
--binaryβ Print the MAC as a binary string. The default is to print the MAC encoded as lower case hex digits. π«Ά--versionβ Print version of the program and exit. bye π
π₯ SEE ALSO π₯
okay bye bestie β this page's source/version is Libgcrypt 1.12.2-unknown and its date is 2026-04-16. stay iconic ππ«Άπ
π¦ where this page comes from
- fedora 44: libgcrypt-devel 1.12.2-1.fc44 Β· BSD-3-Clause AND (BSD-3-Clause OR GPL-2.0-only) AND GPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-2.0-or-later AND MIT-Modern-Variant
- fedora 44: libgcrypt-devel 1.12.2-1.fc44 Β· BSD-3-Clause AND (BSD-3-Clause OR GPL-2.0-only) AND GPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-2.0-or-later AND MIT-Modern-Variant
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms