i have a database setup to where i have people log in with userid and passwords. i generate a random number and encrypt these numbers as passwords and store them into the database. when i query the database and try to decrypt these passwords back to numbers, they are no longer numbers, but rather wierd characteres and jummbled letters. essentially the decrypted form of the encrypted passwords are all wrong so the users cannot log in. the only difference though is that when i type in a number, encrypt it, and right after decrypt it, the numbers appear fine. it is only when i query the database and decrypt what is stored in the database where the passwords get all weird even though the encrypted form of the passwords are the same.