[{"data":1,"prerenderedAt":318},["ShallowReactive",2],{"navigation_docs":3,"-algorithms-sha512-256":200,"-algorithms-sha512-256-surround":313},[4,40],{"title":5,"path":6,"stem":7,"children":8,"icon":39},"Guide","\u002Fguide","1.guide\u002F01.index",[9,11,15,19,23,27,31,35],{"title":10,"path":6,"stem":7},"Getting Started",{"title":12,"path":13,"stem":14},"Hashing","\u002Fguide\u002Fhashing","1.guide\u002F02.hashing",{"title":16,"path":17,"stem":18},"HMAC and verify","\u002Fguide\u002Fverify","1.guide\u002F03.verify",{"title":20,"path":21,"stem":22},"Salted KDFs","\u002Fguide\u002Fkdf","1.guide\u002F04.kdf",{"title":24,"path":25,"stem":26},"CLI","\u002Fguide\u002Fcli","1.guide\u002F05.cli",{"title":28,"path":29,"stem":30},"Agents","\u002Fguide\u002Fagents","1.guide\u002F06.agents",{"title":32,"path":33,"stem":34},"Custom algorithms","\u002Fguide\u002Fcustom","1.guide\u002F07.custom",{"title":36,"path":37,"stem":38},"Playground","\u002Fguide\u002Fplayground","1.guide\u002F08.playground","i-lucide-book-open",{"title":41,"path":42,"stem":43,"children":44,"icon":199},"Algorithms","\u002Falgorithms","2.algorithms\u002F00.index",[45,47,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143,147,151,155,159,163,167,171,175,179,183,187,191,195],{"title":46,"path":42,"stem":43},"Every algorithm",{"title":48,"path":49,"stem":50},"SHA-256","\u002Falgorithms\u002Fsha256","2.algorithms\u002F01.sha256",{"title":52,"path":53,"stem":54},"SHA-384","\u002Falgorithms\u002Fsha384","2.algorithms\u002F02.sha384",{"title":56,"path":57,"stem":58},"SHA-512","\u002Falgorithms\u002Fsha512","2.algorithms\u002F03.sha512",{"title":60,"path":61,"stem":62},"SHA-224","\u002Falgorithms\u002Fsha224","2.algorithms\u002F04.sha224",{"title":64,"path":65,"stem":66},"SHA-512\u002F224","\u002Falgorithms\u002Fsha512-224","2.algorithms\u002F05.sha512-224",{"title":68,"path":69,"stem":70},"SHA-512\u002F256","\u002Falgorithms\u002Fsha512-256","2.algorithms\u002F06.sha512-256",{"title":72,"path":73,"stem":74},"SHA-512Half","\u002Falgorithms\u002Fsha512-half","2.algorithms\u002F07.sha512-half",{"title":76,"path":77,"stem":78},"SHA3-256","\u002Falgorithms\u002Fsha3-256","2.algorithms\u002F08.sha3-256",{"title":80,"path":81,"stem":82},"SHA3-512","\u002Falgorithms\u002Fsha3-512","2.algorithms\u002F09.sha3-512",{"title":84,"path":85,"stem":86},"Keccak-256","\u002Falgorithms\u002Fkeccak256","2.algorithms\u002F10.keccak256",{"title":88,"path":89,"stem":90},"BLAKE2b","\u002Falgorithms\u002Fblake2b","2.algorithms\u002F11.blake2b",{"title":92,"path":93,"stem":94},"BLAKE2b-256","\u002Falgorithms\u002Fblake2b-256","2.algorithms\u002F12.blake2b-256",{"title":96,"path":97,"stem":98},"BLAKE2b-224","\u002Falgorithms\u002Fblake2b-224","2.algorithms\u002F13.blake2b-224",{"title":100,"path":101,"stem":102},"BLAKE2s","\u002Falgorithms\u002Fblake2s","2.algorithms\u002F14.blake2s",{"title":104,"path":105,"stem":106},"BLAKE3","\u002Falgorithms\u002Fblake3","2.algorithms\u002F15.blake3",{"title":108,"path":109,"stem":110},"BLAKE-256","\u002Falgorithms\u002Fblake256","2.algorithms\u002F16.blake256",{"title":112,"path":113,"stem":114},"RIPEMD-160","\u002Falgorithms\u002Fripemd160","2.algorithms\u002F17.ripemd160",{"title":116,"path":117,"stem":118},"RIPEMD-320","\u002Falgorithms\u002Fripemd320","2.algorithms\u002F18.ripemd320",{"title":120,"path":121,"stem":122},"HASH160","\u002Falgorithms\u002Fhash160","2.algorithms\u002F19.hash160",{"title":124,"path":125,"stem":126},"HASH256","\u002Falgorithms\u002Fhash256","2.algorithms\u002F20.hash256",{"title":128,"path":129,"stem":130},"MD5","\u002Falgorithms\u002Fmd5","2.algorithms\u002F21.md5",{"title":132,"path":133,"stem":134},"MD4","\u002Falgorithms\u002Fmd4","2.algorithms\u002F22.md4",{"title":136,"path":137,"stem":138},"NTLM","\u002Falgorithms\u002Fntlm","2.algorithms\u002F23.ntlm",{"title":140,"path":141,"stem":142},"SHA-1","\u002Falgorithms\u002Fsha1","2.algorithms\u002F24.sha1",{"title":144,"path":145,"stem":146},"SHA-0","\u002Falgorithms\u002Fsha0","2.algorithms\u002F25.sha0",{"title":148,"path":149,"stem":150},"RIPEMD-128","\u002Falgorithms\u002Fripemd128","2.algorithms\u002F26.ripemd128",{"title":152,"path":153,"stem":154},"RIPEMD-256","\u002Falgorithms\u002Fripemd256","2.algorithms\u002F27.ripemd256",{"title":156,"path":157,"stem":158},"CRC-32","\u002Falgorithms\u002Fcrc32","2.algorithms\u002F28.crc32",{"title":160,"path":161,"stem":162},"CRC-16\u002FXMODEM","\u002Falgorithms\u002Fcrc16-xmodem","2.algorithms\u002F29.crc16-xmodem",{"title":164,"path":165,"stem":166},"xxHash (XXH64)","\u002Falgorithms\u002Fxxhash","2.algorithms\u002F30.xxhash",{"title":168,"path":169,"stem":170},"FNV-1a (64-bit)","\u002Falgorithms\u002Ffnv1a","2.algorithms\u002F31.fnv1a",{"title":172,"path":173,"stem":174},"scrypt","\u002Falgorithms\u002Fscrypt","2.algorithms\u002F32.scrypt",{"title":176,"path":177,"stem":178},"PBKDF2","\u002Falgorithms\u002Fpbkdf2","2.algorithms\u002F33.pbkdf2",{"title":180,"path":181,"stem":182},"HKDF","\u002Falgorithms\u002Fhkdf","2.algorithms\u002F34.hkdf",{"title":184,"path":185,"stem":186},"EVP_BytesToKey","\u002Falgorithms\u002Fevp-bytestokey","2.algorithms\u002F35.evp-bytestokey",{"title":188,"path":189,"stem":190},"Argon2id","\u002Falgorithms\u002Fargon2id","2.algorithms\u002F36.argon2id",{"title":192,"path":193,"stem":194},"Argon2i","\u002Falgorithms\u002Fargon2i","2.algorithms\u002F37.argon2i",{"title":196,"path":197,"stem":198},"Argon2d","\u002Falgorithms\u002Fargon2d","2.algorithms\u002F38.argon2d","i-lucide-library",{"id":201,"title":68,"body":202,"description":306,"extension":307,"links":308,"meta":309,"navigation":310,"path":69,"seo":311,"stem":70,"__hash__":312},"docs\u002F2.algorithms\u002F06.sha512-256.md",{"type":203,"value":204,"toc":304},"minimark",[205,209,217,290,297,300],[206,207],"algorithm-facts",{"name":208},"sha512-256",[210,211,212,213,216],"p",{},"A 32-byte SHA-2 that runs on SHA-512's 64-bit words. FIPS 180-4 gives it start values of its own, made by hashing the text ",[214,215,68],"code",{},". Algorand uses it for transaction IDs and address checksums.",[218,219,224],"pre",{"className":220,"code":221,"language":222,"meta":223,"style":223},"language-ts shiki shiki-themes hashes hashes hashes","create(\"sha512-256\").hash(\"abc\").digest;\n\u002F\u002F \"53048e2681941ef99b2e29b76b4c7dabe4c2d0c634fc6d46e0e2f13107e7af23\"\ncreate(\"sha512-half\").hash(\"abc\").digest;\n\u002F\u002F \"ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a\"\n","ts","",[214,225,226,257,264,284],{"__ignoreMap":223},[227,228,231,235,239,243,246,249,251,254],"span",{"class":229,"line":230},"line",1,[227,232,234],{"class":233},"sK71F","create",[227,236,238],{"class":237},"s38Sx","(",[227,240,242],{"class":241},"shU9J","\"sha512-256\"",[227,244,245],{"class":237},").",[227,247,248],{"class":233},"hash",[227,250,238],{"class":237},[227,252,253],{"class":241},"\"abc\"",[227,255,256],{"class":237},").digest;\n",[227,258,260],{"class":229,"line":259},2,[227,261,263],{"class":262},"scIB-","\u002F\u002F \"53048e2681941ef99b2e29b76b4c7dabe4c2d0c634fc6d46e0e2f13107e7af23\"\n",[227,265,267,269,271,274,276,278,280,282],{"class":229,"line":266},3,[227,268,234],{"class":233},[227,270,238],{"class":237},[227,272,273],{"class":241},"\"sha512-half\"",[227,275,245],{"class":237},[227,277,248],{"class":233},[227,279,238],{"class":237},[227,281,253],{"class":241},[227,283,256],{"class":237},[227,285,287],{"class":229,"line":286},4,[227,288,289],{"class":262},"\u002F\u002F \"ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a\"\n",[210,291,292,293,296],{},"Two 32-byte cuts of SHA-512, two different digests. Which one do you need? ",[294,295,72],"a",{"href":73}," keeps SHA-512's own start values, and the XRP Ledger wants that one. Algorand wants this one. Swap them and you get a digest that looks perfectly fine and matches nothing.",[210,298,299],{},"The cut has a bonus. Plain SHA-256 hands out its whole state, so anyone can keep hashing from it, the length extension trick. This one keeps half of its state to itself.",[301,302,303],"style",{},"html pre.shiki code .sK71F, html code.shiki .sK71F{--shiki-light:var(--shiki-token-function);--shiki-default:var(--shiki-token-function);--shiki-dark:var(--shiki-token-function)}html pre.shiki code .s38Sx, html code.shiki .s38Sx{--shiki-light:var(--ui-text-highlighted);--shiki-default:var(--ui-text-highlighted);--shiki-dark:var(--ui-text-highlighted)}html pre.shiki code .shU9J, html code.shiki .shU9J{--shiki-light:var(--shiki-token-string);--shiki-default:var(--shiki-token-string);--shiki-dark:var(--shiki-token-string)}html pre.shiki code .scIB-, html code.shiki .scIB-{--shiki-light:var(--shiki-token-comment);--shiki-default:var(--shiki-token-comment);--shiki-dark:var(--shiki-token-comment)}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":223,"searchDepth":259,"depth":259,"links":305},[],"SHA-512 from its own start values cut to 32 bytes. Algorand hashes with it. Not SHA-512Half","md",null,{},true,{"title":68,"description":306},"_Fv5bPggz-paaWBYSbSX-qH3VStHnRhtktHXqWcky80",[314,316],{"title":64,"path":65,"stem":66,"description":315,"children":-1},"SHA-512 from its own start values cut to 28 bytes. Faster than SHA-224 on 64-bit machines and it has HMAC",{"title":72,"path":73,"stem":74,"description":317,"children":-1},"The first 32 bytes of SHA-512. The XRP Ledger hash for transactions and ledger objects. Not SHA-512\u002F256",1790887229113]