What is the primary purpose of a Hash-based Message Authentication Code (HMAC)?
-
A
To encrypt data for confidentiality
-
B
To provide both data integrity and authentication using a shared secret
-
C
To generate asymmetric key pairs
-
D
To replace digital certificates in PKI