vb.net - Confusion with Securestring -


i being bit thick. need write program has machine local admin account username , password hardcoded (so normal user can call validatecredentials on principalcontext)

private function validatead(byval username string, byval password string) boolean     dim valid boolean = false     using context principalcontext = new principalcontext(contexttype.machine, nothing, "administrator", "hardcodedadminpassword")         valid = context.validatecredentials(username, password)     end using     return valid end function 

this bad idea, looking securestring.

however data secure string, don't need pass in regular string, (which immutable, , giving initial security risk)

where wrong?


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -