[{"data":1,"prerenderedAt":429},["ShallowReactive",2],{"navigation_docs":3,"-algorithms-shake256":252,"-algorithms-shake256-surround":424},[4,52],{"title":5,"path":6,"stem":7,"children":8,"icon":51},"Guide","\u002Fguide","1.guide\u002F01.index",[9,11,15,19,23,27,31,35,39,43,47],{"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},"Length extension","\u002Fguide\u002Fextend","1.guide\u002F05.extend",{"title":28,"path":29,"stem":30},"Identify a hash","\u002Fguide\u002Fidentify","1.guide\u002F06.identify",{"title":32,"path":33,"stem":34},"Search for a transform","\u002Fguide\u002Fsearch","1.guide\u002F07.search",{"title":36,"path":37,"stem":38},"CLI","\u002Fguide\u002Fcli","1.guide\u002F08.cli",{"title":40,"path":41,"stem":42},"Agents","\u002Fguide\u002Fagents","1.guide\u002F09.agents",{"title":44,"path":45,"stem":46},"Custom algorithms","\u002Fguide\u002Fcustom","1.guide\u002F10.custom",{"title":48,"path":49,"stem":50},"Playground","\u002Fguide\u002Fplayground","1.guide\u002F11.playground","i-lucide-book-open",{"title":53,"path":54,"stem":55,"children":56,"icon":251},"Algorithms","\u002Falgorithms","2.algorithms\u002F00.index",[57,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,199,203,207,211,215,219,223,227,231,235,239,243,247],{"title":58,"path":54,"stem":55},"Every algorithm",{"title":60,"path":61,"stem":62},"SHA-256","\u002Falgorithms\u002Fsha256","2.algorithms\u002F01.sha256",{"title":64,"path":65,"stem":66},"SHA-384","\u002Falgorithms\u002Fsha384","2.algorithms\u002F02.sha384",{"title":68,"path":69,"stem":70},"SHA-512","\u002Falgorithms\u002Fsha512","2.algorithms\u002F03.sha512",{"title":72,"path":73,"stem":74},"SHA-224","\u002Falgorithms\u002Fsha224","2.algorithms\u002F04.sha224",{"title":76,"path":77,"stem":78},"SHA-512\u002F224","\u002Falgorithms\u002Fsha512-224","2.algorithms\u002F05.sha512-224",{"title":80,"path":81,"stem":82},"SHA-512\u002F256","\u002Falgorithms\u002Fsha512-256","2.algorithms\u002F06.sha512-256",{"title":84,"path":85,"stem":86},"SHA-512Half","\u002Falgorithms\u002Fsha512-half","2.algorithms\u002F07.sha512-half",{"title":88,"path":89,"stem":90},"SHA3-256","\u002Falgorithms\u002Fsha3-256","2.algorithms\u002F08.sha3-256",{"title":92,"path":93,"stem":94},"SHA3-512","\u002Falgorithms\u002Fsha3-512","2.algorithms\u002F09.sha3-512",{"title":96,"path":97,"stem":98},"SHAKE128","\u002Falgorithms\u002Fshake128","2.algorithms\u002F10.shake128",{"title":100,"path":101,"stem":102},"SHAKE256","\u002Falgorithms\u002Fshake256","2.algorithms\u002F11.shake256",{"title":104,"path":105,"stem":106},"Keccak-256","\u002Falgorithms\u002Fkeccak256","2.algorithms\u002F12.keccak256",{"title":108,"path":109,"stem":110},"BLAKE2b","\u002Falgorithms\u002Fblake2b","2.algorithms\u002F13.blake2b",{"title":112,"path":113,"stem":114},"BLAKE2b-256","\u002Falgorithms\u002Fblake2b-256","2.algorithms\u002F14.blake2b-256",{"title":116,"path":117,"stem":118},"BLAKE2b-224","\u002Falgorithms\u002Fblake2b-224","2.algorithms\u002F15.blake2b-224",{"title":120,"path":121,"stem":122},"BLAKE2s","\u002Falgorithms\u002Fblake2s","2.algorithms\u002F16.blake2s",{"title":124,"path":125,"stem":126},"BLAKE3","\u002Falgorithms\u002Fblake3","2.algorithms\u002F17.blake3",{"title":128,"path":129,"stem":130},"BLAKE-256","\u002Falgorithms\u002Fblake256","2.algorithms\u002F18.blake256",{"title":132,"path":133,"stem":134},"RIPEMD-160","\u002Falgorithms\u002Fripemd160","2.algorithms\u002F19.ripemd160",{"title":136,"path":137,"stem":138},"RIPEMD-320","\u002Falgorithms\u002Fripemd320","2.algorithms\u002F20.ripemd320",{"title":140,"path":141,"stem":142},"HASH160","\u002Falgorithms\u002Fhash160","2.algorithms\u002F21.hash160",{"title":144,"path":145,"stem":146},"SHA256D","\u002Falgorithms\u002Fsha256d","2.algorithms\u002F22.sha256d",{"title":148,"path":149,"stem":150},"Whirlpool","\u002Falgorithms\u002Fwhirlpool","2.algorithms\u002F23.whirlpool",{"title":152,"path":153,"stem":154},"MD5","\u002Falgorithms\u002Fmd5","2.algorithms\u002F24.md5",{"title":156,"path":157,"stem":158},"MD4","\u002Falgorithms\u002Fmd4","2.algorithms\u002F25.md4",{"title":160,"path":161,"stem":162},"MD2","\u002Falgorithms\u002Fmd2","2.algorithms\u002F26.md2",{"title":164,"path":165,"stem":166},"NTLM","\u002Falgorithms\u002Fntlm","2.algorithms\u002F27.ntlm",{"title":168,"path":169,"stem":170},"SHA-1","\u002Falgorithms\u002Fsha1","2.algorithms\u002F28.sha1",{"title":172,"path":173,"stem":174},"SHA-0","\u002Falgorithms\u002Fsha0","2.algorithms\u002F29.sha0",{"title":176,"path":177,"stem":178},"RIPEMD-128","\u002Falgorithms\u002Fripemd128","2.algorithms\u002F30.ripemd128",{"title":180,"path":181,"stem":182},"RIPEMD-256","\u002Falgorithms\u002Fripemd256","2.algorithms\u002F31.ripemd256",{"title":184,"path":185,"stem":186},"HAVAL","\u002Falgorithms\u002Fhaval","2.algorithms\u002F32.haval",{"title":188,"path":189,"stem":190},"Tiger","\u002Falgorithms\u002Ftiger","2.algorithms\u002F33.tiger",{"title":192,"path":193,"stem":194},"CRC-32","\u002Falgorithms\u002Fcrc32","2.algorithms\u002F34.crc32",{"title":196,"path":197,"stem":198},"CRC-64","\u002Falgorithms\u002Fcrc64","2.algorithms\u002F35.crc64",{"title":200,"path":201,"stem":202},"CRC-24","\u002Falgorithms\u002Fcrc24","2.algorithms\u002F36.crc24",{"title":204,"path":205,"stem":206},"CRC-16\u002FXMODEM","\u002Falgorithms\u002Fcrc16-xmodem","2.algorithms\u002F37.crc16-xmodem",{"title":208,"path":209,"stem":210},"Adler-32","\u002Falgorithms\u002Fadler32","2.algorithms\u002F38.adler32",{"title":212,"path":213,"stem":214},"xxHash","\u002Falgorithms\u002Fxxhash","2.algorithms\u002F39.xxhash",{"title":216,"path":217,"stem":218},"FNV-1a (64-bit)","\u002Falgorithms\u002Ffnv1a","2.algorithms\u002F40.fnv1a",{"title":220,"path":221,"stem":222},"scrypt","\u002Falgorithms\u002Fscrypt","2.algorithms\u002F41.scrypt",{"title":224,"path":225,"stem":226},"PBKDF2","\u002Falgorithms\u002Fpbkdf2","2.algorithms\u002F42.pbkdf2",{"title":228,"path":229,"stem":230},"HKDF","\u002Falgorithms\u002Fhkdf","2.algorithms\u002F43.hkdf",{"title":232,"path":233,"stem":234},"EVP_BytesToKey","\u002Falgorithms\u002Fevp-bytestokey","2.algorithms\u002F44.evp-bytestokey",{"title":236,"path":237,"stem":238},"Argon2id","\u002Falgorithms\u002Fargon2id","2.algorithms\u002F45.argon2id",{"title":240,"path":241,"stem":242},"Argon2i","\u002Falgorithms\u002Fargon2i","2.algorithms\u002F46.argon2i",{"title":244,"path":245,"stem":246},"Argon2d","\u002Falgorithms\u002Fargon2d","2.algorithms\u002F47.argon2d",{"title":248,"path":249,"stem":250},"bcrypt","\u002Falgorithms\u002Fbcrypt","2.algorithms\u002F48.bcrypt","i-lucide-library",{"id":253,"title":100,"body":254,"description":417,"extension":418,"links":419,"meta":420,"navigation":421,"path":101,"seo":422,"stem":102,"__hash__":423},"docs\u002F2.algorithms\u002F11.shake256.md",{"type":255,"value":256,"toc":415},"minimark",[257,261,265,281,354,378,384,390,411],[258,259],"algorithm-facts",{"name":260},"shake256",[262,263,264],"p",{},"SHAKE256 doesn't stop at a fixed digest size. Ask for 114 bytes and it gives you 114. Why 114? Ed448 hashes its keys and signatures with exactly that much. ML-KEM and ML-DSA use it too. SHAKE256 is a FIPS 202 extendable output function. It shares the Keccak sponge with SHA-3 but uses different padding.",[262,266,267,268,272,273,276,277,280],{},"Set ",[269,270,271],"code",{},"outputLength"," to a whole number of bytes from zero. The default is 64 bytes, SHAKE256's full 256-bit security. Comparing with ",[269,274,275],{},"openssl dgst","? Pass ",[269,278,279],{},"-xoflen 64",", it refuses to pick one for you. Shorter outputs have less collision resistance. Stick with the default unless your protocol specifies another length.",[282,283,288],"pre",{"className":284,"code":285,"language":286,"meta":287,"style":287},"language-ts shiki shiki-themes hashes hashes hashes","create(\"shake256\").hash(\"abc\").digest;\n\u002F\u002F \"483366601360a8771c6863080cc4114d8db44530f8f1e1ee4f94ea37e78b5739d5a15bef186a5386c75744c0527e1faa9f8726e462a12a4feb06bd8801e751e4\"\ncreate(\"shake256\").hash(\"abc\", { outputLength: 114 }).options;\n\u002F\u002F { encoding: \"hex\", outputLength: 114 }\n","ts","",[269,289,290,321,328,348],{"__ignoreMap":287},[291,292,295,299,303,307,310,313,315,318],"span",{"class":293,"line":294},"line",1,[291,296,298],{"class":297},"sK71F","create",[291,300,302],{"class":301},"s38Sx","(",[291,304,306],{"class":305},"shU9J","\"shake256\"",[291,308,309],{"class":301},").",[291,311,312],{"class":297},"hash",[291,314,302],{"class":301},[291,316,317],{"class":305},"\"abc\"",[291,319,320],{"class":301},").digest;\n",[291,322,324],{"class":293,"line":323},2,[291,325,327],{"class":326},"scIB-","\u002F\u002F \"483366601360a8771c6863080cc4114d8db44530f8f1e1ee4f94ea37e78b5739d5a15bef186a5386c75744c0527e1faa9f8726e462a12a4feb06bd8801e751e4\"\n",[291,329,331,333,335,337,339,341,343,345],{"class":293,"line":330},3,[291,332,298],{"class":297},[291,334,302],{"class":301},[291,336,306],{"class":305},[291,338,309],{"class":301},[291,340,312],{"class":297},[291,342,302],{"class":301},[291,344,317],{"class":305},[291,346,347],{"class":301},", { outputLength: 114 }).options;\n",[291,349,351],{"class":293,"line":350},4,[291,352,353],{"class":326},"\u002F\u002F { encoding: \"hex\", outputLength: 114 }\n",[282,355,359],{"className":356,"code":357,"language":358,"meta":287,"style":287},"language-bash shiki shiki-themes hashes hashes hashes","hashes shake256 abc --output-length 114\n","bash",[269,360,361],{"__ignoreMap":287},[291,362,363,366,369,372,375],{"class":293,"line":294},[291,364,365],{"class":297},"hashes",[291,367,368],{"class":305}," shake256",[291,370,371],{"class":305}," abc",[291,373,374],{"class":305}," --output-length",[291,376,377],{"class":305}," 114\n",[262,379,380,381,383],{},"The default digest is the first 64 bytes of that longer output, byte for byte. Nothing gets reshuffled when you ask for more, the sponge just keeps going. Different lengths for one input aren't independent. A result reports ",[269,382,271],{}," in its options only when explicitly set.",[262,385,386,387,389],{},"Agent tools allow at most 1024 output bytes per call. They also limit rounds times ",[269,388,271],{}," to 64 million bytes. Library callers can choose any length. A gigabyte of SHAKE? Your call.",[262,391,392,393,396,397,400,401,404,405,407,408,410],{},"There's no HMAC mode, and SHAKE doesn't miss it. For direct byte functions, import ",[269,394,395],{},"shake256(bytes, length)"," from ",[269,398,399],{},"@agntn\u002Fhashes\u002Fkeccak",". The ",[402,403,12],"a",{"href":13}," guide has more. Compare ",[402,406,96],{"href":97}," and ",[402,409,88],{"href":89},".",[412,413,414],"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":287,"searchDepth":323,"depth":323,"links":416},[],"The FIPS 202 sponge at 256-bit security. Squeezes 64 bytes by default, and exactly the 114 Ed448 asks for","md",null,{},true,{"title":100,"description":417},"Br0oEoH_W9fOuI1E8unT8PYCP-9SlTW8s0fPp9Y_KtQ",[425,427],{"title":96,"path":97,"stem":98,"description":426,"children":-1},"The FIPS 202 sponge at 128-bit security. Squeezes 32 bytes unless you ask for another length",{"title":104,"path":105,"stem":106,"description":428,"children":-1},"Keccak with its original padding. Ethereum addresses and function selectors and storage slots plus Tron and Monero",1796257426119]