Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
20
Task/SHA-256/Wren/sha-256.wren
Normal file
20
Task/SHA-256/Wren/sha-256.wren
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import "/crypto" for Sha256
|
||||
import "/fmt" for Fmt
|
||||
|
||||
var strings = [
|
||||
"",
|
||||
"a",
|
||||
"abc",
|
||||
"message digest",
|
||||
"abcdefghijklmnopqrstuvwxyz",
|
||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
|
||||
"12345678901234567890123456789012345678901234567890123456789012345678901234567890",
|
||||
"The quick brown fox jumps over the lazy dog",
|
||||
"The quick brown fox jumps over the lazy cog",
|
||||
"Rosetta code"
|
||||
]
|
||||
|
||||
for (s in strings) {
|
||||
var hash = Sha256.digest(s)
|
||||
Fmt.print("$s <== '$0s'", hash, s)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue