how to get key from registry ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ButtonMaker
    Forum Member
    • Mar 2007
    • 172

    how to get key from registry ?

    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 :
    Code:
    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
    No longer a forum member
    • Mar 2007
    • 533

    #2
    something like that

    Code:
    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);

    Comment

    • ButtonMaker
      Forum Member
      • Mar 2007
      • 172

      #3
      hey Jack r u real ??? :yes:yes:yes:yes:yes

      thank u sooo much man :yes

      Comment

      • jackdaniels
        No longer a forum member
        • Mar 2007
        • 533

        #4
        Your welcome ButtonMaker :yes

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

        Comment

        Working...
        X