wipeAll
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)
}Content copied to clipboard
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