|
-
Jun 23rd, 2020, 03:04 AM
#1
Thread Starter
Member
[RESOLVED] SHA-256 as decimal
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
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|