NimbleTOTP.secret

You're seeing just the function secret, go back to NimbleTOTP module for more information.

Generate a binary composed of random bytes.

The number of bytes is defined by the size argument. Default is 20 per the HOTP RFC.

Examples

NimbleTOTP.secret()
#=> <<178, 117, 46, 7, 172, 202, 108, 127, 186, 180, ...>>