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



On Mon, Sep 30, 2013 at 11:50 AM, Buck Calabro <kc2hiz@xxxxxxxxx> wrote:

What sort of data are you going to encrypt? This might influence the
algorithm you choose to use.


Just text.


Will the PCs be able to access the IBM i machine or will they be
standalone?


The PC won't be able to access the iSeries until the data is decrypted.


> 1. Looking for a simple example of using the crypto routines in RPG.


https://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=%2Fapis%2Fqc3WriteCusILERPG.htm

http://www.scottklement.com/rpg/cipher/


http://www.mcpressonline.com/rpg/simplify-encryption-with-the-use-of-rpg-reusable-procedures.html


Thanks for those ... the info on Mr. Klement's page seem especially useful.


> 3. What format should I use when encrypting the data (I figure the
routines won't encrypt the same text in ASCII and EBCDIC the same).
Maybe Unicode?

Use iconv() to convert between EBCDIC and UTF-8:
http://iprodeveloper.com/rpg-programming/how-convert-data-utf-8


I knew about iconv ... I'm thinking I will need to convert the data to
Unicode before encryption and back to ebcdic after decryption in order to
get the correct result.

Mike

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.