-
Notifications
You must be signed in to change notification settings - Fork 85
HMAC
tarcieri edited this page Mar 8, 2013
·
5 revisions
Crypto::HMAC::SHA256
and Crypto::HMAC::SHA512256
provide secure hash-based message authenticators.
Message authenticators are the symmetric equivalent of [digital signatures|Digital Signatures]. They can be used to detect when a message has been (potentially maliciously) altered.
Sorry, there's not a code example for this yet. For now you can view the RDoc:
- Crypto::HMAC::SHA256: HMAC with SHA-256
- Crypto::HMAC::SHA512256: HMAC with SHA-512, truncated to 256-bits