Skip to content
Mohammad Badar Hashimi edited this page Jan 13, 2020 · 1 revision

HMAC Utility Library

This library defines the HMAC Utility to be used in Anar Framework. The HMAC Utility is implemented using desired methods of MessageDigest class of java security package.

Features

  • Performs a digest using the specified array of bytes.
  • Updates the digest using the specified byte
  • Return the digest as a plain text with Salt
  • Return the digest as a plain text
  • Creates a message digest with the specified algorithm name.
  • Generate Random Salt (with default 16 bytes of length).
  • Generate Random Salt (with given length)
  • Encodes to BASE64 String
  • Decodes from BASE64
Clone this wiki locally