I have read lots of posts regarding the best and most secure approach for creating a remember me checkbox in windows forms applications in vb.net (VS 2017 CE)
some suggest My.Setting
and others suggesting registry.
Reference to this post: https://stackoverflow.com/a/4083212/7735285
As a side note, Windows applications store secrets locally using DPAPI, exposed in .Net as ProtectedData class. The link has fully functional examples of encrypting data with DPAPI in .Net. However, the point remains that storing user credentials in applications, even under DPAPI, is fundamentally broken.
so my question is as the subject says: How to create a secure remember me checkbox ; without the need to store login credential.
is there a way to simulate secure cookie on win forms applications or what is the best practice?
what I have in mind is to use TPM 2 if vb.net can read/write but still can't be sure if this is best practice , plus this add limitations to app ; if that is not available option at user's end.
Please any reference or tip?
Thanks in advance and any input is appreciated.
PS. there is lots of recommendation for asp and IIS but can't find proper and direct solution for vb.net win form apps.
Update: to fully understand the scenario; I am about to develop an app to help and support users with some medical issues, thus for privacy is a challenge.