Hi Brett,

this is possible, due to data conversions...
try to store the passwords in plain text like:

String encrypted_pwd = SecurityHandler.encryptToString( enteredPassword );


Brett Slocum wrote:

I have a Java web application that uses a servlet to store userids and
encrypted passwords, as well as a stored procedure on the AS400 that
checks to see if the password is correct.

I'm having an problem where certain passwords (e.g. 'password99')
always fail when the stored procedure checks the encrypted passwords
against each other.

Below is a code sniplet of the encryption. The String returned gets
stored via JDBC into the AS400.

Is there some issue with storing UTF-8 characters in the DB2 database?
Should I use EBCDIC-US instead?

Any help would be greatly appreciated. Thanks in advance.




--
-----------------------------------------------------------------------------
*** This messages was scanned for malicious contents ***
-----------------------------------------------------------------------------
Franco Biaggi
CH-6807 Taverne



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.