Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2005
    Posts
    1

    Unable to write a binary password to the registry

    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

  2. #2
    SUF6NEWBIE Guest
    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
    Last edited by SUF6NEWBIE; 02-25-2005 at 09:18 PM.

  3. #3
    Join Date
    Jan 2000
    Posts
    2,002
    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"

Similar Threads

  1. Adding Password Protection
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-03-2003, 03:25 PM
  2. Reoccurring password
    By Bruce in forum AutoPlay Media Studio 4.0
    Replies: 6
    Last Post: 06-04-2003, 04:09 PM
  3. Password
    By Bruce in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 05-31-2003, 05:52 PM
  4. Replies: 2
    Last Post: 02-19-2003, 04:29 AM
  5. can not import binary data from registry?
    By mmtree in forum Setup Factory 5.0
    Replies: 1
    Last Post: 12-12-2000, 09:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts