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 πŸ”₯

sha256sum(1)


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