mirror of
https://github.com/in3rsha/sha256-animation
synced 2025-04-09 10:59:04 +02:00
added note
This commit is contained in:
parent
76583eb13d
commit
9f431b581f
@ -48,6 +48,8 @@ primes.each do |prime|
|
||||
#
|
||||
# Hex: 428a2f98
|
||||
#
|
||||
# In other words, you multiply the fractional part by 2^32, floor it, then convert to hexadecimal.
|
||||
#
|
||||
hex = ""
|
||||
8.times do # 32 bits = 8 hex characters
|
||||
product = fractional * 16 # multiply fraction by 16
|
||||
|
Loading…
Reference in New Issue
Block a user