secureWipe

Guarantee value's memory is wiped with zeroes (even with optimisations enabled)

It's conservative about the types that are allowed. If your type isn't allowed, you should possibly consider using a different one for sensitive data. For example, it won't erase immutable types like strings (use char[] instead) or classes (use a plain-old-data struct instead) or anything containing pointers.

  1. void secureWipe(T value)
    @safe @trusted
    void
    secureWipe
    (
    T
    )
    (
    ref T value
    )
    if (
    isJustData!T &&
    isMutable!T
    )
  2. void secureWipe(T[] value)

Meta