slow.monster

STUDIO HAZE · image

Topaz source

Open by house policy. Topaz is our own language.

Topaz 5.9 · 42 files

topaz/src/hash.tpz

Topaz · 324 B · Original file

1// SHA-256 byte-array hashing.
3import std.hash
5export function 해시배열(원본: Array<int>) -> Array<int> {
6 let mut 입력 = ByteBuffer.allocate(원본.length)
7 let mut 색인 = 0
8 while 색인 < 원본.length { 입력.set(색인, 원본[색인]); 색인 = 색인 + 1 }
9 Hash.sha256(입력.toBytes()).toArray()

SHA256 9954211a9d92ca05302e160578f2fe02cce8ffcb3fca77bf2800ea350b9ad0c6