If I want to make a C# login form,withamysqldatabsewhichprovidestheuserdata,in c#,iwouldsayit ' sunsafetowritethedatabasepassssswore andisthereanotherwaylikeawebserverwhichwillconnecttothedatabaseandcheckifuserdataisright?
Talk1:
wellifyouseanotherservicetodothelogin,wontthathavetheaccesscredentialssomewhereintheconnectionstring?
Talk3:
thatreferencelinkisformsftsql-server.andtomcanyoupleaseimproveyourquestionbecauserightnowitisquiteunclearandisnothelpingmum ordsifyouareusingapacheorsomethingthen.netisnottoorelevantinsomeoftheanswersbelow
youshouldstoresuchthingsinaconfigurationfile . nethastheoptiontouseencryptioninweb.config/app.config。
eitherwayyouwillhavetoprovidethosecredentials.youcanpasstheminconnectionstringinyourcode (canhavethosemaintainedinweb.coned ) youcanactuallyencryptthepasswordandhavetheencryptedvaluementiity