Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Encrypted passwords from Dialog
#1
Hi,
I couldn't find the answer on my own in Help/Forums/Web so here goes:

I am setting up a username and password entry dialog to automate logon for a few commonly used apps and web services at my institution. Each user will enter their data in a dialog, like the sample below....
Obviously encryption is the key issue here:

The password entry field has the style for "*******" but I know that won't truly encrypt it. I geuss I will take the string for that field and encrypt it to the registry in the following way (from the help file):

Quote:str App1Pass
App1Pass.encrypt(10)
rset App1Pass "EncryptedApp1Pass" "\Test"

My question lies in how to organize the data from multiple users using this dialog (i.e. when each person who uses the dialog they should create their own encrypted set of entries. Thus later when they are trying to login to a site, the encrypted information will be called from the appropriate location (encrypted function or from registry???) and then entered into the user/password field of a specific app/webpage entry form (presumably using AutoPassword function)

I had trouble using decrypt - I think because MD5 encryption.

Finally, once each user has created their encrypted password files, how will I export this to each of the multple stations running the shared .qml file from the network drive. I know it probably has something to do with qmreg5.reg but not exactly sure.

I hope that wasn't too poor of an explanation.

Thanks for any help in architecture or syntax!!!
(see form below)

Stuart

Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

str user computer
GetUserComputer user computer
;out "%s\%s" computer user

str controls = "100 101 105"
str rea100 rea101 st105st

st105st.format("User ID: %s" user)

if(!ShowDialog("Login_Password_Dlg" &Login_Password_Dlg &controls)) ret

;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 221 279 "AutoLogin"
;1 Button 0x54030001 0x4 64 232 38 14 "OK"
;2 Button 0x54030000 0x4 104 232 46 14 "Cancel"
;100 RichEdit20A 0x54231000 0x200 108 108 50 13 ""
;101 RichEdit20A 0x54230020 0x200 108 126 50 12 "*"
;102 Static 0x54000000 0x0 22 102 186 46 "[]1. User ID:[][]2. Password (encrypted) "
;105 Static 0x54000000 0x0 22 20 48 13 "UserID"
;3 Static 0x54000000 0x0 22 38 188 42 "Please confirm this is your correct User ID before proceeding.[][]If not, logoff (Ctrl-Alt-Del) and login again under your own User ID"
;4 Static 0x54000000 0x0 52 4 118 10 "Username and Password Enrollment"
;103 Button 0x54032007 0x0 16 86 198 72 "App1"
;END DIALOG
;DIALOG EDITOR: "" 0x2020105 "" "" ""


ret
;messages
sel message
,case WM_INITDIALOG
,DT_Init(hDlg lParam)
,,
,ret 1
,case WM_DESTROY
,DT_DeleteData(hDlg)  
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK DT_Ok hDlg
,case IDCANCEL DT_Cancel hDlg
,


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)