SensitiveWiper

Overwrites char/byte buffers holding secrets so they cannot linger in memory.

Functions

Link copied to clipboard
fun wipe(bytes: ByteArray?)

Fills bytes with zeros when non-null.

fun wipe(vararg buffers: CharArray?)

Fills each non-null buffers entry with NUL characters.