Hi all. I have MySQl server. my database will store the username and his password. the application will not store the password as a plain text, instead, the application will compute the digest of the password (using MessageDigest class), so the application will save the password as byte[ ] type. my questions are : 1. what is the type of byte[ ] should be in the database ? 2. to store byte[ ] in the database we use : resultset.updateBytes(...); and to retrieve byte[ ] we use : resultset.getBytes(...); right ?? thanks ranchers.