해시 생성기 (SHA·MD5)

Hash Generator (SHA · MD5)

입력한 텍스트·파일은 브라우저에서만 처리되며 서버로 전송·저장되지 않습니다.Your text and files are processed entirely in your browser — never uploaded or stored.

해시 생성기란?

해시 생성기는 텍스트나 파일을 MD5, SHA-1, SHA-256, SHA-512 알고리즘으로 변환해 고정 길이의 16진수 문자열(해시값)을 만드는 도구입니다. 파일 무결성 검증, 체크섬 확인, 데이터 중복 검사 등에 사용합니다.

알고리즘별 특징
  • MD5: 128비트(32자리) 해시. 속도가 빠르지만 충돌 취약점이 알려져 보안 용도로는 권장하지 않습니다. 이 페이지는 MD5를 순수 자바스크립트로 직접 구현해 계산합니다.
  • SHA-1: 160비트(40자리) 해시. 역시 보안 취약점이 발견되어 신규 보안 용도로는 권장하지 않습니다.
  • SHA-256 / SHA-512: 각각 256비트(64자리)·512비트(128자리) 해시로 현재도 안전하게 널리 쓰이는 알고리즘입니다. 브라우저 내장 Web Crypto API로 계산합니다.
참고: 해시는 되돌릴 수 없는 단방향 변환입니다. 원문을 복원할 수 없으며, 두 값이 같은지 비교하는 용도로만 사용됩니다.
개인정보·처리 방식

모든 해시 계산은 사용자의 브라우저 안에서만 이루어집니다. 입력한 텍스트나 선택한 파일은 서버로 전송되거나 저장되지 않으며, 결과는 ‘결과 복사’ 버튼으로 클립보드에 담을 수 있습니다.

What is this tool?

The hash generator converts text or a file into a fixed-length hexadecimal digest using MD5, SHA-1, SHA-256, or SHA-512 — useful for verifying file integrity, checksums, and detecting duplicate data.

Algorithm notes
  • MD5: a 128-bit (32-hex-digit) digest. Fast, but known collision weaknesses make it unsuitable for security use. This page implements MD5 in pure JavaScript.
  • SHA-1: a 160-bit digest, also considered broken for new security purposes.
  • SHA-256 / SHA-512: 256-bit / 512-bit digests still considered secure and widely used, computed via the browser's built-in Web Crypto API.
Note: Hashing is one-way and irreversible — you cannot recover the original data, only compare digests for equality.
Privacy & processing

All hashing happens in your browser. Your text or selected file is never uploaded or stored, and you can copy the result to your clipboard.

해시(hash)란 무엇인가요?
해시는 임의 길이의 데이터를 고정 길이의 16진수 문자열로 변환하는 단방향 함수의 결과입니다. 같은 입력은 항상 같은 해시를 만들고, 입력이 1비트만 달라져도 해시는 완전히 달라집니다. 파일 무결성 확인, 비밀번호 저장, 데이터 중복 검사 등에 사용됩니다.
MD5와 SHA의 차이는 무엇인가요?
MD5는 128비트(32자리 16진수) 해시를 만들며 충돌(서로 다른 입력이 같은 해시를 갖는 경우) 취약점이 알려져 있어 보안 용도로는 권장되지 않습니다. SHA-1도 마찬가지로 보안 위험이 있습니다. SHA-256·SHA-512는 현재도 널리 쓰이는 안전한 해시 알고리즘으로, 각각 256비트·512비트 해시를 생성합니다.
해시로 원본 데이터를 복원할 수 있나요?
아니요. 해시는 단방향 함수이므로 해시값만으로 원본 데이터를 복원할 수 없습니다. 대신 두 데이터의 해시를 비교해 동일한지 여부만 확인할 수 있습니다. 이 성질 때문에 비밀번호를 평문 대신 해시로 저장합니다.
파일 해시는 언제 사용하나요?
다운로드한 파일이 배포자가 제공한 체크섬과 일치하는지 확인해 손상·변조 여부를 검증할 때 사용합니다. 소프트웨어 배포 사이트에서 흔히 SHA-256 체크섬을 함께 게시합니다.
입력한 텍스트나 파일이 서버로 전송되나요?
아니요. 모든 해시 계산은 브라우저 내장 Web Crypto API 또는 자체 구현한 순수 자바스크립트로 사용자의 기기 안에서만 이루어지며, 텍스트나 파일 내용은 서버로 전송되거나 저장되지 않습니다.
What is a hash?
A hash is the fixed-length hexadecimal result of a one-way function applied to data of any length. The same input always produces the same hash, and changing even one bit of the input completely changes the hash. It is used for integrity checks, password storage, and duplicate detection.
What is the difference between MD5 and SHA?
MD5 produces a 128-bit (32-hex-digit) digest and has known collision weaknesses, so it is not recommended for security use. SHA-1 has similar weaknesses. SHA-256 and SHA-512 are still considered secure and widely used, producing 256-bit and 512-bit digests respectively.
Can I recover the original data from a hash?
No. Hashing is one-way, so the original data cannot be recovered from the digest alone. You can only compare two digests to check whether the underlying data matches — which is why passwords are stored as hashes instead of plain text.
When should I use a file hash?
Use it to confirm a downloaded file matches the checksum published by its distributor, verifying it was not corrupted or tampered with. Software distribution sites commonly publish SHA-256 checksums alongside downloads.
Is my text or file sent to a server?
No. All hashing is done in your browser using the built-in Web Crypto API or a self-contained JavaScript implementation; your text or file contents are never uploaded or stored.

안내: 본 도구는 표준 해시 알고리즘(MD5·SHA-1·SHA-256·SHA-512)으로 참고용 해시값을 계산하는 도구이며, 모든 처리는 브라우저 안에서만 이루어집니다. MD5·SHA-1은 보안 목적으로 사용하지 마세요.

Note: This tool computes reference hash values using standard algorithms (MD5, SHA-1, SHA-256, SHA-512), and all processing happens in your browser. Do not use MD5 or SHA-1 for security purposes.