PDA

View Full Version : how to get key from registry ?


ButtonMaker
02-17-2009, 06:38 AM
i have 2 registry keys stored user name and password... how can i get them in to input objects ? Input1 and Input2

thats how i save them :
Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Logon\\Users", "Username", ""..EncryptedUsername.."", REG_SZ);
Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Logon\\Users", "Password", ""..EncryptedPassword.."", REG_SZ);

thanks for any help

jackdaniels
02-17-2009, 07:24 AM
something like that ;)

user = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\Logon\\Users", "Username", true);
pass = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\Logon\\Users", "Password", true);
getusername = Crypto.BlowfishDecryptString(user, "Username");
getpassword = Crypto.BlowfishDecryptString(pass, "Password");
Input.SetText("Input1", getusername);
Input.SetText("Input2", getpassword);

ButtonMaker
02-17-2009, 07:28 AM
hey Jack r u real ??? :yes:yes:yes:yes:yes

thank u sooo much man :yes

jackdaniels
02-17-2009, 07:48 AM
Your welcome ButtonMaker :yes

Just trying to help as much as I can... ;)