Cryptography and D

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 6 00:07:52 PDT 2014


On 7/5/2014 11:45 PM, Nick Sabalausky wrote:
> The idea behind the auto-zeroing Password type in DAuth: you do your best to
> give it [hopefully] the one and only copy of the plaintext password data, in
> mutable form, and DAuth nukes it from memory as soon as it's able to. Not
> if/when GC kicks in, sweeps it, and reuses it. And not just a copy of the data,
> but the actual [hopefully] original buffer. Any further attempts (deliberate or
> accidental) to read that data through any other reference will only receive zeros.

It's an interesting possible application for a 'unique' reference type.



More information about the Digitalmars-d mailing list