[{"data":1,"prerenderedAt":270},["ShallowReactive",2],{"content:en:sha256-generator":3},{"id":4,"title":5,"body":6,"description":246,"extension":247,"faq":248,"kind":261,"locale":262,"meta":263,"navigation":264,"path":265,"seo":266,"seoTitle":267,"stem":268,"__hash__":269},"pages\u002Fen\u002Fsha256-generator.md","SHA-256 Hash Generator",{"type":7,"value":8,"toc":235},"minimark",[9,14,18,21,24,28,39,49,53,86,96,111,115,118,122,125,128,132,135,141,145,201,205,227],[10,11,13],"h2",{"id":12},"what-this-tool-calculates","What this tool calculates",[15,16,17],"p",{},"SHA-256 is a SHA-2 algorithm with a 256-bit result. Its full hexadecimal representation is 64 characters. This is commonly used in download manifests, build pipelines and content identifiers. Copy the entire value: shortening it changes the comparison procedure and can materially weaken an identifier.",[15,19,20],{},"A plain SHA-256 digest has no secret key. Anyone who can change both an artifact and its accompanying checksum can produce another matching pair. Obtain the expected value from an authenticated publisher, and use a signature or a suitable keyed mechanism when authenticity is the actual requirement.",[15,22,23],{},"For text, the tool hashes UTF-8 bytes exactly as entered. For files, it streams the original bytes. Hashing the visible text of a PDF or the displayed contents of a ZIP is not the same as hashing that file. The comparison control validates 64 hexadecimal digits and distinguishes a malformed expected value from a well-formed mismatch.",[10,25,27],{"id":26},"worked-example","Worked example",[15,29,30,34,35,38],{},[31,32,33],"code",{},"UTF-8"," · ",[31,36,37],{},"abc"," · SHA-256",[40,41,47],"pre",{"className":42,"code":44,"language":45,"meta":46},[43],"language-text","ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad\n","text","",[31,48,44],{"__ignoreMap":46},[10,50,52],{"id":51},"how-to-calculate-and-compare","How to calculate and compare",[54,55,56,72,79],"ol",{},[57,58,59,60,64,65,68,69,71],"li",{},"Enter the exact text in ",[61,62,63],"strong",{},"Input text",", or choose ",[61,66,67],{},"Example"," to load ",[31,70,37],{},". Text is encoded as UTF-8; spaces and line endings are preserved.",[57,73,74,75,78],{},"In single-text mode, non-empty input up to 64 KiB updates after a short pause. Click ",[61,76,77],{},"Generate hash"," for empty input or larger text. Changing the input clears the previous result.",[57,80,81,82,85],{},"To check a saved file instead, open ",[61,83,84],{},"File checksum",", confirm the algorithm, and choose or drop the file. File mode reads its original bytes and starts automatically.",[15,87,88,89,92,93,95],{},"For line-by-line results, enable ",[61,90,91],{},"One hash per line",", choose whether to include empty lines, then click ",[61,94,77],{},". Line mode does not calculate automatically. CRLF, LF and CR separate records and are not included in each line's digest. Duplicate lines retain their original line numbers.",[15,97,98,99,102,103,106,107,110],{},"Paste only the complete hexadecimal reference into ",[61,100,101],{},"Compare expected value (optional)"," and click ",[61,104,105],{},"Check",". Letter case and surrounding pasted whitespace are ignored; internal spaces and the wrong length are rejected. ",[61,108,109],{},"Copy"," retains the full result. TXT and CSV exports include identifiers, algorithm names and digests, not source text or secret keys.",[10,112,114],{"id":113},"limits-privacy-and-next-steps","Limits, privacy and next steps",[15,116,117],{},"Text is limited to 10 MiB and line mode to 10,000 records, including empty records before filtering. Files are limited to 50 queue entries and 1 GiB each, read sequentially in 2 MiB chunks. These limits protect browser resources; they do not guarantee fast processing on every phone. Cancel if needed. Calculation takes place in the browser, while normal page and asset requests still reach the hosting service.",[10,119,121],{"id":120},"verifying-a-release-with-sha-256","Verifying a release with SHA-256",[15,123,124],{},"Use the release's SHA-256 reference, not a value copied from a different build or platform. In File checksum mode, select SHA-256 and choose the downloaded artifact. Paste the full 64-character reference and compare it before installing or unpacking the file. A mismatch is a reason to investigate the release and download source, not to trim the computed result until it matches.",[15,126,127],{},"For debugging text integrations, distinguish a message from a textual representation of bytes. Entering the two characters 61 hashes UTF-8 bytes for those characters; it does not decode them into the single byte for a. This text editor accepts UTF-8 text, not raw Hex input. For request authentication that specifies a key, use HMAC rather than a plain SHA-256 digest.",[10,129,131],{"id":130},"the-text-61-is-not-the-byte-0x61","The text 61 is not the byte 0x61",[15,133,134],{},"In single-text mode, calculate 61, then replace it with a. The different outputs below demonstrate why decoding and text encoding must not be confused.",[40,136,139],{"className":137,"code":138,"language":45,"meta":46},[43],"SHA-256 \u002F UTF-8 \"61\" (36 31):\nd029fa3a95e174a19934857f535eb9427d967218a36ea014b70ad704bc6c8d1c\nSHA-256 \u002F UTF-8 \"a\" (61):\nca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb\n",[31,140,138],{"__ignoreMap":46},[10,142,144],{"id":143},"when-a-sha-256-check-disagrees","When a SHA-256 check disagrees",[146,147,148,164],"table",{},[149,150,151],"thead",{},[152,153,154,158,161],"tr",{},[155,156,157],"th",{},"Observed problem",[155,159,160],{},"Why it happens",[155,162,163],{},"What to do",[165,166,167,179,190],"tbody",{},[152,168,169,173,176],{},[170,171,172],"td",{},"The reference has 44 characters and ends in =",[170,174,175],{},"It may be Base64 rather than hexadecimal",[170,177,178],{},"Obtain or correctly convert the reference to 64 hex characters.",[152,180,181,184,187],{},[170,182,183],{},"A sha256sum line is rejected",[170,185,186],{},"It includes a filename or marker",[170,188,189],{},"Paste the digest only; retain the filename separately.",[152,191,192,195,198],{},[170,193,194],{},"A webhook signature differs",[170,196,197],{},"The protocol may require HMAC and exact request bytes",[170,199,200],{},"Use the HMAC tool with the specified key encoding and original message.",[10,202,204],{"id":203},"related-tools-and-guides","Related tools and guides",[206,207,208,215,221],"ul",{},[57,209,210],{},[211,212,214],"a",{"href":213},"\u002Ffile-md5","File checksum calculator",[57,216,217],{},[211,218,220],{"href":219},"\u002Fhmac-generator","HMAC message authentication",[57,222,223],{},[211,224,226],{"href":225},"\u002Fguides\u002Fmd5-vs-sha256","MD5 vs SHA-256",[15,228,229],{},[211,230,234],{"href":231,"rel":232},"https:\u002F\u002Fcsrc.nist.gov\u002Fpubs\u002Ffips\u002F180-4\u002Fupd1\u002Ffinal",[233],"nofollow","FIPS 180-4",{"title":46,"searchDepth":236,"depth":236,"links":237},2,[238,239,240,241,242,243,244,245],{"id":12,"depth":236,"text":13},{"id":26,"depth":236,"text":27},{"id":51,"depth":236,"text":52},{"id":113,"depth":236,"text":114},{"id":120,"depth":236,"text":121},{"id":130,"depth":236,"text":131},{"id":143,"depth":236,"text":144},{"id":203,"depth":236,"text":204},"Generate SHA-256 hashes from UTF-8 text or local files, and verify a complete 64-character hexadecimal value.","md",[249,252,255,258],{"question":250,"answer":251},"Is SHA-256 the same as HMAC-SHA256?","No. A plain SHA-256 hash has no secret key. HMAC is a distinct keyed construction; use the HMAC tool when that is what the protocol specifies.",{"question":253,"answer":254},"Can I paste a Base64 SHA-256 value into Compare?","No. This field expects 64 hexadecimal characters. Base64 is a different encoding of digest bytes; do not remove padding or change letters to make it look like hex.",{"question":256,"answer":257},"Does typing 61 hash the byte 0x61?","No. The text editor hashes the characters 6 and 1 as UTF-8. To hash the byte 0x61 as text, enter a; for arbitrary binary bytes use a local file.",{"question":259,"answer":260},"Is a webhook's SHA-256 signature always a plain hash?","No. Many protocols specify HMAC-SHA256 or another construction. Follow the provider's exact algorithm, key encoding and message-byte rules.","tool","en",{},true,"\u002Fen\u002Fsha256-generator",{"title":5,"description":246},"SHA-256 Hash Generator — md5hash.net","en\u002Fsha256-generator","21bFbEdCSGvOkCzF2pt8E8TpUAjJ78RdinC5jIcWe6E",1792048883697]