encryption wonderment

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

In our application we have an encrypted datafile.
To be a bit user friendly I had an encryption test at the begining of the
file.
I put the encrypted value of an 8 bytes known array. (the crypting algo uses
8 bytes block of data)

so I could test a user password to see if it encrypt the same way as the
real password.

I wonder if this doesn't decrease the security a bit?

What could I do?

I just think I could put only 4 bytes, enabling me to check, but not being
completely accurate.
any other ideas? thoughts?
 
Lloyd said:
In our application we have an encrypted datafile.
To be a bit user friendly I had an encryption test at the begining of the
file.
I put the encrypted value of an 8 bytes known array. (the crypting algo uses
8 bytes block of data)

so I could test a user password to see if it encrypt the same way as the
real password.

I wonder if this doesn't decrease the security a bit?

It's theoretically decreasing the security.
What could I do?

I just think I could put only 4 bytes, enabling me to check, but not being
completely accurate.

I'd put a MD5 or SHA1 hash of the passwort instead. When
the user types his password again, you build the hash
and compare it with the stored value.

bye
Rob
 
good idea, thanks for that!

Robert Jordan said:
It's theoretically decreasing the security.


I'd put a MD5 or SHA1 hash of the passwort instead. When
the user types his password again, you build the hash
and compare it with the stored value.

bye
Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top