create Random Secret
Generates a secure random secret with the same length as a hash of the given HMAC algorithm (defined in HmacAlgorithm.hashBytes).
Parameters
hmac Algorithm
the HMAC algorithm from that the number of bytes is taken.
Generates a secure random secret with variable length.
Parameters
secret Bytes
the length (as number of bytes) of the generated secret.