UPC-A

Encrypts/Decrypts string containing UPC-A values and produces a result which is a valid UPC-A value. The encrypted date will be valid UPC-A number with valid check digit. The check digit is computed as per GS1 specification as follows:

Y = (3*X1 + X2 + 3*X3 + X4 + 3*X5 + X6 + 3*X7 + X8 + 3*X9 + X10 + 3*X11) mod 10 

If Y equals 0, then Check Digit = 0

If Y is not equals to 0, then Check Digit = 10 - Y

Example:

Input : 036000291452

Output : 73493483358

Encryption Service URL: https://services.cipherworks.io/cwEncrypt?keyContext=BigRing-BigKey-2.0&plainText=036000291452&type=UPC&tweak=01234567