ExtSecretBytes extension

on

Methods

encode({StringEncoding encoding = StringEncoding.utf8}) → String

Available on SecretBytes, provided by the ExtSecretBytes extension

takeBigInt({int? length, Endian byteOrder = Endian.big, bool sign = false}) → BigInt

Available on SecretBytes, provided by the ExtSecretBytes extension

Extracts the plaintext as a BigInt and destroys this secret in the same step. Same "read once, then gone" contract as takeBytes.
toBigInt({int? length, Endian byteOrder = Endian.big, bool sign = false, int offset = 0}) → BigInt

Available on SecretBytes, provided by the ExtSecretBytes extension

toHex({String prefix = '', bool lowerCase = true}) → String

Available on SecretBytes, provided by the ExtSecretBytes extension