3 ms·
You're confusing two different concepts. I once encountered a situation where a junior programmer just wrote the password to the log file. The point of using
by gwbas1c 5y ago
You're confusing two different concepts.
I once encountered a situation where a junior programmer just wrote the password to the log file.
The point of using a separate type for secure data is to allow the compiler to try to trap situations where sensitive data is used incorrectly. (Yes, a dedicated moron could probably work around this kind of trap, but there is no such thing as a 100% perfect safety net.)
Trying to prevent data leaks at the hardware level is a completely different problem with a completely different solution.