Problem Looking for tips on how to improve my code and areas that I can better follow Object Orientated principles. […]
Tag: checksum
Refactored 2 functions into 1 – Verify UPC/EAN13 barcode
Problem I refactored 2 seperate functions that I found here into a single function: <? function isValidBarcode($barcode) { $barcode = […]
Calculating Luhn-algorithm checksum digit
Problem Today I decided to learn some basic Haskell, and for starters I made a program for calculating the checksum […]
Check the validity of a South African ID number using the Luhn Algorithm
Problem import java.math.BigInteger; /** * Created by lungisani on 2017/02/25. */ public class Luhn { public Boolean getIdentitySummation(BigInteger identities){ String […]
Bash script to perform LUHN check
Problem The following Bash script takes a single parameter (the PAN) and exits with 1 if the PAN does not […]
Convert ISBN10 to ISBN13
Problem Looking to confirm that I am doing this in the most efficient way. func convrtisbn10(isbn: String) { var checkSum: […]
Calculating a Luhn Check Digit
Problem I was able to find all kinds of examples that demonstrate how to validate a Luhn Checksum but very […]
Implementing a 7-3-1 check digit
Problem I need to implement a method that adds a “7-3-1” check digit to my id. The “7-3-1” method works […]
Implementing a 7-3-1 check digit
Problem I need to implement a method that adds a “7-3-1” check digit to my id. The “7-3-1” method works […]
Haskell code to verify credit number
Problem I am new to Haskell, and wrote a script to verify credit number. I did some tests, the script […]
- 1
- 2