hwsecurity / de.cotech.hw.secrets / ByteSecretGenerator /

ByteSecretGenerator

open class ByteSecretGenerator

A generator for ByteSecret instances.

Functions

Name Summary
createRandom

open fun createRandom(numBytes: Int): ByteSecret

Creates a random ByteSecret of the given length.

createRandomAlphaNumeric

open fun createRandomAlphaNumeric(numChars: Int): ByteSecret

Creates a random alphanumeric ByteSecret of the given length.

createRandomNumeric

open fun createRandomNumeric(numChars: Int): ByteSecret

Creates a random numeric ByteSecret of the given length.

getInstance open fun getInstance(): ByteSecretGenerator