Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15711

[RESOLVED] SHA-256 as decimal

$
0
0
Hi,

I'm trying to write some code to produce a checksum for a barcode. The check sum states "All decimal values of the SHA256 checksum are added", and "The decimal 2 digit modulo 100 of the calculated sum are the two checksum digits. E.g.: Checksum Bytes 90, 165, 234 (hex. 5A,A5,EA) -> 90+165+234=489 -> 489 mod 100 = 89"

I have some code working to create a Hexadecimal number from a string and this produced the same hex sting as the online converters, but I am at a loss of how to get this to a decimal value to then work out the final checksum. Any ideas?

eg hex = 84ee032df238e3026bcd8eadbfcff97861a8fad1ca8cd6c2865d89797ba4eea0

Viewing all articles
Browse latest Browse all 15711

Trending Articles