Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Luhn algorithem in talend

Hi All

 

I have to implement Luhn Algorithem in Talend. I already have code for this for that is implemented in other ETL tool. Anyone can help me to implement that in talend as well.

Labels (2)
8 Replies
manodwhb
Champion II
Champion II

@shivapanchal ,can you share more details?

Anonymous
Not applicable
Author

 

The Luhn’s algorithm, also known as the modulus 10 or mod 10 algorithm, is a simple checksum formula used to validate a variety of identification numbers, such as credit card numbers, IMEI numbers, Canadian Social Insurance Numbers. The LUHN formula was created in the late 1960s by a group of mathematicians. Shortly thereafter, credit card companies adopted it. Because the algorithm is in the public domain, it can be used by anyone. Most credit cards and many government identification numbers use the algorithm as a simple method of distinguishing valid numbers from mistyped or otherwise incorrect numbers. It was designed to protect against accidental errors, not malicious attacks.

 

 

 

Luhn Algorithem is a Java code which I need to implement in Talend

manodwhb
Champion II
Champion II

@shivapanchal ,then create a Talend user Routines.check the below link to create Routines.

 

 

https://community.talend.com/t5/Design-and-Development/Create-a-user-routine-and-call-it-in-a-Job/ta...

gpinumalla
Creator
Creator

Hi shivapanchal,

Were you able to implement the luhn algorithem in Talend open studio in Big data/ Data Integration. Can you let me know.

I want to do the same. can you guide me. 


@shivapanchal wrote:

Hi All

 

I have to implement Luhn Algorithem in Talend. I already have code for this for that is implemented in other ETL tool. Anyone can help me to implement that in talend as well.


 

Anonymous
Not applicable
Author

Thanks for the responses all of you.

I have implemented the Luhn algorithm successful but did in a different way as I dont have much knowledge about talend.

 

I have created a function in sql server and then using tmssql I have called that algorithm. It was very simple to implement by this way. Just create a fucntion in your DB and call that.

 

Let me know if you need anything else

gpinumalla
Creator
Creator

Thanks for the info. create the sql function and calling  it is the best way. are you just validating the credit card or doing the complete algorithm like 2x-9 and then mod 10 . if you have any sample sql luhn algorithm for cards  , can you share it. 

 

I was looking in Talend data preparation , there is something I noticed with data masking ( obfuscation ) which can mask all cards  and if we can use the jar files of talend data preparation in Talend data quality or Talend data integartion. our issue is resolved without writing PL/SQL or TSQL . I don't know how to do it. Talend expert should help us out .

 

 https://help.talend.com/reader/JhYq1xxY0SNSBZCbOFzZGg/KONp0R7h6x3poEr5ZSjRNg

gpinumalla
Creator
Creator

Shiva,

Looking at performance point of view . it is better "java" should handle the luhn algorithm . when we run millions of records , there would be memory space issues latter. we had these issues calling the  other functions in db for ETL.