Method: Covert.hmac

Defined in:
lib/covert.rb

.hmac(str) ⇒ String

Returns HMAC encoded string.

Examples:

Generate HMAC code

Covert.hmac("mystring") #=> "cddb0db23f469c8bf072b21fd837149bd6ace9ab771cceef14c9e517cc93282e"

Parameters:

  • str (String)

    String for HMAC encoding

Returns:

  • (String)

    HMAC encoded string



39
40
41
# File 'lib/covert.rb', line 39

def self.hmac(str)
  Hmac.call(value: str)
end