View Full Version : Unable to write a binary password to the registry
leedaman
02-25-2005, 07:47 PM
I am trying to write a password to the registry using the following
Registry.SetValue(HKEY_CURRENT_USER, "Software\\setup\\pass", "Password", SessionVar.Expand("%Password%"), REG_BINARY);
But when i look at the registry it shows the following
Name Type Data
Password REG_BINARY 56
password that has been entered is seen as being incorrect
can any one tell me where i am going wrong ?
Thanks in advance
SUF6NEWBIE
02-25-2005, 10:04 PM
No code for you..however you may need to 'convert' the 'password' to
'decimal' ..check the actions ..should be an exampole etc.
once converted..try writing at a binary..
regardless when checking correct password..you would need to 'reconvert back' for it to work ?
Have you considered the 'Crypto Plugin' ...much easier and in reality Stronger
password method..specially when recording-verifying from the Registry.
I personally recommend investing in this Plugin..or using it for password purposes, if you already have it..
hope helps in some small way
..basically you use the crypto plugin actions to 'encrypt' the original 'password' and then record
where you desire..there is a recent post
in the AMS forum ..Plugins which may help you in this regard.
http://www.indigorose.com/forums/showthread.php?t=10115
Brett
03-01-2005, 09:12 AM
If you look at the help file for Registry.SetValue you will see this:
REG_BINARY = Raw binary data. Setup Factory requires this data be passed as a string of hex values separated by single spaces. For example, 2C 00 00
REG_BINARY
So, you would first need to convert each character in your string to its numerical value and then to a hex string.
i.e.
"password" = "70 61 73 73 77 6F 72 64 69"
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.