Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
An implementation of RFC1321 - The MD5 Message-Digest Algorithm in JavaScript
JavaScript
Branch: master
Pull request Compare This branch is 3 commits ahead, 1 commit behind kohyama:master.
Failed to load latest commit information.
lib fixed a few strict-mode errors, added test cases
tests give actual example of md5sum
README.md give actual example of md5sum

README.md

English

jsMD5 is an implementation of RFC 1321 - The MD5 Message-Digest Algorithm in JavaScript.

To use this do as below:

var md5 = require('./md5')
  , na
  , str
  ;

na = md5.digest(<array of numbers>);
// na is an array of numbers

str = md5.digest_s('The quick brown fox jumped over the lazy dog.');
// str === '5c6ffbdd40d9556b73a21e63c3e0e904'

"array of numbers" is an array of unsigned integer of each bytes to digest or of each bytes of digested.

Japanese

jsMD5 は RFC 1321 - The MD5 Message-Digest Algorithm の JavaScript による実装です.

This software license is the New BSD License.

利用するには

var md5 = require('./md5')
  , na
  , str
  ; 

na = md5.digest(数値の配列); 
// na は数値配列

str = md5.digest_s(文字列);
// str は文字列

のようにします. 数値の配列はダイジェストを取りたいバイト列およびダイジェスト計算を行った後のバイト列の, 各バイトを非符号整数にしたものの配列です.

本ソフトゥアのライセンスは, 修正BSDライセンスとします.

Something went wrong with that request. Please try again.