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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -