Hi,
I am making a database for recording the transactions of a small shop.
As it would be used by different people, I decided to introduce a login form where different users have to enter their respective passwords for logging in.
After entering password, I thought it was better to encrypt the password.
I downloaded an encryption algorithm for vba from internet. The function takes in a string (password to be encrypted), a secret key and an Optional Boolean variable.
The algorithm seems to work if the Boolean is set to false but gives error on compiling if set to true.
I have attached a copy of a database with just the function of entering a password and its subsequent encryption.
I would be greatly thankful if someone has a look in it and help me to sort out the error.
The encryption algorithm was downloaded and imported as a seperate class. After downloading, I tried to run it but it was giving an error, so I added 'PtrSafe' in the Private Declaration line of the code.
The optional boolean variable I talked about seems to convert the encoded string to Unicode.
The error that occurs is the 'Compile Error : Type Mismatch' and VarPtr is highlightd. My machine is a 64-bit. I tried to look online for the solution and saw that Long should be replaced with LongPtr.
I tried that but that lead to a new 'Type mismatch' error, at some other part of the code.
I am not experienced in cryptography. Can someone please help me.