3 ms·
Probably not a big deal, but they're reinventing the wheel a bit... Windows has RtlEncryptMemory/CryptProtectMemory for this. https://docs.microsoft.com/en-us/
by mehrdadn 7y ago
Probably not a big deal, but they're reinventing the wheel a bit... Windows has RtlEncryptMemory/CryptProtectMemory for this.
https://docs.microsoft.com/en-us/windows/win32/api/dpapi/nf-dpapi-cryptprotectmemory https://docs.microsoft.com/en-us/windows/win32/api/dpapi/nf-...
- christoph-heiss 7y agoNot really a cross-platform API, is it?
- mehrdadn 7y agoNo, but I'm suggesting it's not a bad idea to use it on Windows. That way if there's ever an improvement made to it (imagine better hardware support or something coming along someday), you'd get it automatically.
- pjmlp 7y agoNo, but it could take advantage of native API in each platform and fall back into Go ones when such kind of APIs aren't available.