Secret

class Secret(input: ByteArray) : Closeable

A secret is a value which tries very hard not to expose itself as a string, by storing it's value in a byte array. You can "use" the value only once, after which the value is destroyed

Constructors

Link copied to clipboard
constructor(value: String)
constructor(input: ByteArray)

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun <T> use(fn: (String) -> T): T