Page 1 of 1

MD5 Encryption using Datastage 7.5

Posted: Fri Mar 12, 2010 11:44 am
by wasimus
Hello,

Has anyone used an MD5 encryption in the Datastage server routine or have done anything like this. Kindly share.

Thanks

Posted: Fri Mar 12, 2010 3:40 pm
by chulett
Yes! :D No can do. :(

Posted: Mon Mar 15, 2010 2:33 am
by ArndW
I'm in the same boat as Craig. Yes, have written it, but no, cannot share. This is because the code was written at a client site while the client was paying for my time; thus the code doesn't belong to me any more. While not complicated, it is a bit of work to get functioning correctly

The Wiki article MD5 Encryption lists the basic algorithm quite well, and the web has several sources (in other languages) available. Visual BASIC is a good starting point for using sample code and changing it to DS/BASIC.

Posted: Mon Mar 15, 2010 8:52 am
by chulett
ArndW wrote:I'm in the same boat as Craig. Yes, have written it, but no, cannot share. This is because the code was written at a client site while the client was paying for my time; thus the code doesn't belong to me any more.
And just in case it wasn't obvious, yes this is exactly the same reason for my answers.

Posted: Thu Sep 20, 2012 4:50 am
by battaliou
You could use PERL, as this is probably available on your DS server.

Code: Select all

use strict;
use Digest::MD5  qw(md5_hex);
my $md5_data = "martin";
my $md5_hash = md5_hex( $md5_data );
print "$md5_hash\n";