beautypg.com

Rohashgenerator – BrightSign Object Reference Manual (FW 5.1) User Manual

Page 147

background image

139

roHashGenerator

This object provides an API for generating a variety of message digests.

Object Creation: The hash algorithm is specified when creating the roHashGenerator object.

CreateObject("roHashGenerator", algorithm As String)

The algorithm parameter accepts the following strings:

SHA256

SHA384

SHA512

SHA1

MD5

CRC32

Note: CRC32 is only available on firmware versions 4.4.x or later.


Interfaces: ifHashGenerator

The ifHashGenerator interface provides the following:

Hash(obj As Object) As Object: Hashes the payload, which can be supplied in the form of a string (or any
object implementing ifString) or an

roByteArray

. The hash is returned as an roByteArray.

SetHmacKey(a As Dynamic) As Boolean:

SetObfuscatedHmacKey(a As String) As Boolean:

GetFailureReason() As String: