CRC32 도 한번 알아봐야겠다...
C#
function String MD5(String FILE) { Byte[] asciiBytes = File.ReadAllBytes(FILE); Byte[] hashedBytes = MD5.Create().ComputeHash(asciiBytes); return BitConverter.ToString(hashedBytes).Replace("-", "").ToLower(); }
PHP
<?php $file = "/DO_NOT_DELETE"; echo md5_file($file); ?>
반응형
'그냥 코딩!' 카테고리의 다른 글
nginx 와 php-fpm 이 빈 페이지를 만들때. (0) | 2017.09.28 |
---|---|
Url 인코드가 되지 않는 철자들.... (0) | 2017.09.21 |
무료 레이아웃 사이트들... (0) | 2017.04.08 |