Choose Language Hide Translation Bar
vince_faller
Super User

save passwords securely

Does anyone have a secure way to store passwords so users don't have to enter their password every time?  

I don't want to just store the password as plain text in a preferences file or anything like that.  

 

Names default to here(1);
nw = new window("Login", 
	lineupbox(ncol(2), 
		textbox("Username"), teb_uid = texteditbox("Vincent", <<Set Width(200)), 
		textbox("Password"), teb_pwd = texteditbox("thisisapassword", <<Width(200), <<Password Style(1))
	), 
	cb_save = checkbox({"Remember Me"}), 
	buttonbox("OK", 
		uid = teb_uid << Get Text();
		pwd = teb_pwd << Get Text();
		nw << close window();
	)
);

Vince Faller - Predictum
0 Kudos
2 REPLIES 2
txnelson
Super User

Re: save passwords securely

Create a script that contains the passwords........in Associative Arrays, or in lists, etc.  Then save that script as an encrypted script.

Jim
0 Kudos
vince_faller
Super User

Re: save passwords securely

That would involve me having access to all users passwords.  Definitely not doable.  And telling a user to save their password as an encrypted script also isn't a viable option.  I truly want a "remember me" option where I can store whatever username/password  they type programmatically, but that storage is secure.  

Vince Faller - Predictum
0 Kudos