wipeAll

fun wipeAll(vararg arrays: ByteArray?)

Wipes multiple byte arrays from memory.

Use case: When you have multiple sensitive arrays to wipe:

try {
val seed = ...
val privateKey = ...
// Use them...
} finally {
MemoryUtils.wipeAll(seed, privateKey)
}

Guarantee:

  • ALL arrays are wiped, even if one is null

  • Continues wiping even if an exception occurs (should never happen)

Parameters

arrays

Variable number of byte arrays to wipe