Skip site navigation (1)Skip section navigation (2)

  
 
  

home | help
HMAC256(1)			    Libgcrypt			      HMAC256(1)

NAME
     hmac256 - Compute an HMAC-SHA-256 MAC

SYNOPSIS
     hmac256 [--binary] key [FILENAME]

DESCRIPTION
     This  is  a standalone HMAC-SHA-256 implementation used to compute an HMAC-
     SHA-256 message authentication code.  The tool has originally  been  devel-
     oped  as  a  second implementation for Libgcrypt to allow comparing against
     the primary implementation and to be used for internal consistency  checks.
     It should not be used for sensitive data because no mechanisms to clear the
     stack etc are used.

     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.

     hmac256 is commonly invoked as

       hmac256 "This is my key" foo.txt

     This compute the MAC on the file `foo.txt' using the key given on the  com-
     mand line.

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.

SEE ALSO
     sha256sum(1)

Libgcrypt 1.12.2		   2026-08-27			      HMAC256(1)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=hmac256&sektion=1&manpath=FreeBSD+Ports+15.1.quarterly>

home | help