[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"i-lucide:file-text":3,"i-lucide:image":8,"i-lucide:code-xml":10,"i-lucide:search":12,"i-lucide:menu":14,"i-lucide:globe":16,"i-lucide:chevron-down":18,"i-lucide:check":20,"page-content:en:tool:hash-generator":22,"i-lucide:lock":67,"i-lucide:arrow-up-right":69},{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":7},0,24,false,"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z\"\u002F>\u003Cpath d=\"M14 2v5a1 1 0 0 0 1 1h5M10 9H8m8 4H8m8 4H8\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":9},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Crect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" ry=\"2\"\u002F>\u003Ccircle cx=\"9\" cy=\"9\" r=\"2\"\u002F>\u003Cpath d=\"m21 15l-3.086-3.086a2 2 0 0 0-2.828 0L6 21\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":11},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m18 16l4-4l-4-4M6 8l-4 4l4 4m8.5-12l-5 16\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":13},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"m21 21l-4.34-4.34\"\u002F>\u003Ccircle cx=\"11\" cy=\"11\" r=\"8\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":15},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 5h16M4 12h16M4 19h16\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":17},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"10\"\u002F>\u003Cpath d=\"M12 2a14.5 14.5 0 0 0 0 20a14.5 14.5 0 0 0 0-20M2 12h20\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":19},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m6 9l6 6l6-6\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":21},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M20 6L9 17l-5-5\"\u002F>",{"tool":23,"category":66},{"title":24,"description":25,"heading":26,"intro":27,"howTo":28,"sections":40,"faq":53},"Hash Generator — SHA-256, SHA-512 and SHA-1 for Text or Files","Generate SHA-256, SHA-384, SHA-512 or SHA-1 hashes of text or any file with the Web Crypto API. Use it to verify downloads by comparing checksums. MD5 is not offered.","Hash Generator","Calculate a checksum of text or a file, for example to compare it with the SHA-256 value published next to a download.",{"title":29,"steps":30},"How to generate a hash",[31,34,37],{"title":32,"body":33},"Enter text or pick a file","Switch between Text and File. Any file type can be hashed.",{"title":35,"body":36},"Choose an algorithm","SHA-256 is the default. SHA-384, SHA-512 and SHA-1 are available too.",{"title":38,"body":39},"Generate and compare","Copy the lowercase hexadecimal hash and compare it with the expected value.",[41,48],{"title":42,"list":43},"Algorithms",[44,45,46,47],"SHA-256: 64 hex characters. The standard choice for file checksums and most integrity checks.","SHA-384 and SHA-512: 96 and 128 hex characters.","SHA-1: 40 hex characters. Only for compatibility with older systems; it is no longer collision-resistant.","MD5 is not offered.",{"title":49,"paragraphs":50},"How the hash is calculated",[51,52],"Hashes are computed with the browser's Web Crypto API. Text is hashed as UTF-8 bytes, so the result matches command-line tools such as sha256sum for the same text without a trailing newline.","A file is read into memory in full before hashing, so very large files depend on the memory available on your device. The file is not uploaded.",[54,57,60,63],{"question":55,"answer":56},"How do I verify a downloaded file with SHA-256?","Choose File, select the download, keep SHA-256 and generate. The result should match the checksum published by the provider character for character.",{"question":58,"answer":59},"Why does my hash differ from the command line?","Often because echo adds a newline to the text. Hash the exact same bytes: use printf, or hash the file itself.",{"question":61,"answer":62},"Can I use this to hash passwords?","No. Plain SHA hashes are too fast for password storage. Use a password hashing function such as Argon2 or bcrypt in your application.",{"question":64,"answer":65},"Does this support MD5?","No. Only SHA-1, SHA-256, SHA-384 and SHA-512 are available.",null,{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":68},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Crect width=\"18\" height=\"11\" x=\"3\" y=\"11\" rx=\"2\" ry=\"2\"\u002F>\u003Cpath d=\"M7 11V7a5 5 0 0 1 10 0v4\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":70},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M7 7h10v10M7 17L17 7\"\u002F>"]