PDA

View Full Version : Solved: Password Encryption



Meagon
07-12-2006, 01:48 AM
Hello,

Does anyone now of a way to enctrypt a string in VBA?

Thkx,

Meagon

OBP
07-12-2006, 05:57 AM
Why would you want to do that in Access when Access's Security will do it for you?

Meagon
07-12-2006, 06:04 AM
How exactly do i do that?

OBP
07-12-2006, 06:15 AM
You Secure the Database with the Security Wizard. Everybody who uses the database has to log on with a user ID and Password. They can have differing levels of access to records, tables, queries, forms, reports and macros.
Look under Tools>Security on the Main Menu.

Meagon
07-12-2006, 06:40 AM
Ok, i get it.:thumb

But that isn't what i wanted. :think:
I need to create a user account table with local (user / pass) and on-line (user / webservices tokent) Autentication.
I need a password encryption like this one http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemsecuritycryptographymd5cryptoserviceproviderclasstopic.asp but for VBA use.

OBP
07-12-2006, 07:47 AM
Have you tried the Microsoft VB version in the VB Editor?

Meagon
07-12-2006, 07:50 AM
Yes, it doesn't "compile":dunno

OBP
07-12-2006, 08:35 AM
Meagon, sorry I couldn't help.
I did have a look at the Access Reference Library and found one reference called cryptext which is a free text encryption program, but I don't know anything about it or whether it can be used with Access, other than it is in the reference library and it is a free download.

Meagon
07-12-2006, 09:23 AM
Thkx anyway OBP!

I have a litle bit more info now, i think i need to create a class module with the encryption algorithm... well.. gonna try it out.

Thkx!:thumb