× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Is SecurityHandler.encryptToString() and IBM specific extension?  I 
couldn't find mention of it anywhere...





Brett Slocum <brett.slocum@xxxxxxxxx> 
Sent by: java400-l-bounces@xxxxxxxxxxxx
10/02/2005 16:50
Please respond to
Java Programming on and around the iSeries / AS400 
<java400-l@xxxxxxxxxxxx>


To
Java Programming on and around the iSeries / AS400 
<java400-l@xxxxxxxxxxxx>
cc

Subject
Re: Storing encrypted passwords on AS400






On Wed, 09 Feb 2005 20:05:26 +0100, Franco Biaggi <fbiaggi@xxxxxxxxxx> 
wrote:
> this is possible, due to data conversions...
> try to store the passwords in plain text like:
> 
> String encrypted_pwd = SecurityHandler.encryptToString( enteredPassword 
);

The only problem with this method is that the Strings generated are 40
characters long (I just ran a test case), and the password field in
the database is only 25 characters long. I'm trying to change the
method of encryption without changing the database. We are installed
in hundreds of locations and updating the AS400 library is only done
when absolutely necessary.

Is there a way to pack these bytes closer and still use Strings? I
realize that packing them as single characters is what is giving me
the headache in the first place.

If I have to, I'll change the field length, but this would be a last
resort, and would delay the change for at least 6 months.

-- 
Brett Slocum
<slocum@xxxxxxxxxxxxxx>
-- 
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) 
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.




The information contained in this e-mail is confidential and
may be privileged. It  is intended only for the addressee(s)
stated above. If you are not an addressee, any use,
dissemination, distribution, publication, or copying
of the information contained in this e-mail
is strictly prohibited.

Friends First Life Assurance Company Ltd is regulated
by the Irish Financial Services Regulatory Authority. 

If you have received this e-mail in error, please immediately
notify us by telephone at 353-1-6610600 or e-mail
Helpdesk@xxxxxxxxxxxxxxx and delete the e-mail
from your system.

Thank you for your co-operation.
Friends First  Group, Cherrywood Business Park , Loughlinstown
Dublin 18.


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-2024 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.