js-md5 0.7.2 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/LICENSE.txt +1 -1
  3. package/README.md +18 -2
  4. package/build/md5.min.js +3 -3
  5. package/index.d.ts +148 -0
  6. package/package.json +15 -10
  7. package/src/md5.js +272 -79
  8. package/.covignore +0 -2
  9. package/.npmignore +0 -2
  10. package/.travis.yml +0 -11
  11. package/bower.json +0 -8
  12. package/doc/Md5_.html +0 -1194
  13. package/doc/fonts/OpenSans-Bold-webfont.eot +0 -0
  14. package/doc/fonts/OpenSans-Bold-webfont.svg +0 -1830
  15. package/doc/fonts/OpenSans-Bold-webfont.woff +0 -0
  16. package/doc/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  17. package/doc/fonts/OpenSans-BoldItalic-webfont.svg +0 -1830
  18. package/doc/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  19. package/doc/fonts/OpenSans-Italic-webfont.eot +0 -0
  20. package/doc/fonts/OpenSans-Italic-webfont.svg +0 -1830
  21. package/doc/fonts/OpenSans-Italic-webfont.woff +0 -0
  22. package/doc/fonts/OpenSans-Light-webfont.eot +0 -0
  23. package/doc/fonts/OpenSans-Light-webfont.svg +0 -1831
  24. package/doc/fonts/OpenSans-Light-webfont.woff +0 -0
  25. package/doc/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  26. package/doc/fonts/OpenSans-LightItalic-webfont.svg +0 -1835
  27. package/doc/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  28. package/doc/fonts/OpenSans-Regular-webfont.eot +0 -0
  29. package/doc/fonts/OpenSans-Regular-webfont.svg +0 -1831
  30. package/doc/fonts/OpenSans-Regular-webfont.woff +0 -0
  31. package/doc/global.html +0 -309
  32. package/doc/index.html +0 -105
  33. package/doc/md5.html +0 -1469
  34. package/doc/md5.js.html +0 -734
  35. package/doc/scripts/linenumber.js +0 -25
  36. package/doc/scripts/prettify/Apache-License-2.0.txt +0 -202
  37. package/doc/scripts/prettify/lang-css.js +0 -2
  38. package/doc/scripts/prettify/prettify.js +0 -28
  39. package/doc/styles/jsdoc-default.css +0 -358
  40. package/doc/styles/prettify-jsdoc.css +0 -111
  41. package/doc/styles/prettify-tomorrow.css +0 -132
  42. package/tests/index.html +0 -22
  43. package/tests/node-test.js +0 -100
  44. package/tests/requirejs.html +0 -24
  45. package/tests/test.js +0 -270
  46. package/tests/worker-test.js +0 -21
  47. package/tests/worker.html +0 -26
  48. package/tests/worker.js +0 -12
package/doc/Md5_.html DELETED
@@ -1,1194 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <title>JSDoc: Class: Md5</title>
6
-
7
- <script src="scripts/prettify/prettify.js"> </script>
8
- <script src="scripts/prettify/lang-css.js"> </script>
9
- <!--[if lt IE 9]>
10
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11
- <![endif]-->
12
- <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
13
- <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
14
- </head>
15
-
16
- <body>
17
-
18
- <div id="main">
19
-
20
- <h1 class="page-title">Class: Md5</h1>
21
-
22
-
23
-
24
-
25
-
26
-
27
- <section>
28
-
29
- <header>
30
-
31
- <h2><span class="attribs"><span class="type-signature"></span></span>Md5<span class="signature">()</span><span class="type-signature"></span></h2>
32
-
33
-
34
- </header>
35
-
36
- <article>
37
- <div class="container-overview">
38
-
39
-
40
-
41
-
42
-
43
-
44
- <h4 class="name" id="Md5"><span class="type-signature"></span>new Md5<span class="signature">()</span><span class="type-signature"></span></h4>
45
-
46
-
47
-
48
-
49
-
50
-
51
- <div class="description">
52
- This is internal class.
53
- </div>
54
-
55
-
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
-
66
-
67
- <dl class="details">
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
- <dt class="tag-source">Source:</dt>
95
- <dd class="tag-source"><ul class="dummy"><li>
96
- <a href="md5.js.html">md5.js</a>, <a href="md5.js.html#line178">line 178</a>
97
- </li></ul></dd>
98
-
99
-
100
-
101
-
102
-
103
- <dt class="tag-see">See:</dt>
104
- <dd class="tag-see">
105
- <ul>
106
- <li><a href="md5.html#.create">md5.create</a></li>
107
- </ul>
108
- </dd>
109
-
110
-
111
-
112
- </dl>
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
- </div>
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
- <h3 class="subsection-title">Methods</h3>
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
- <h4 class="name" id="array"><span class="type-signature"></span>array<span class="signature">()</span><span class="type-signature"> &rarr; {Array}</span></h4>
158
-
159
-
160
-
161
-
162
-
163
-
164
- <div class="description">
165
- Output hash as bytes array
166
- </div>
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
- <dl class="details">
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
- <dt class="tag-source">Source:</dt>
208
- <dd class="tag-source"><ul class="dummy"><li>
209
- <a href="md5.js.html">md5.js</a>, <a href="md5.js.html#line579">line 579</a>
210
- </li></ul></dd>
211
-
212
-
213
-
214
-
215
-
216
- <dt class="tag-see">See:</dt>
217
- <dd class="tag-see">
218
- <ul>
219
- <li><a href="md5.html#.array">md5.array</a></li>
220
- </ul>
221
- </dd>
222
-
223
-
224
-
225
- </dl>
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
-
239
- <h5>Returns:</h5>
240
-
241
-
242
- <div class="param-desc">
243
- Bytes array
244
- </div>
245
-
246
-
247
-
248
- <dl>
249
- <dt>
250
- Type
251
- </dt>
252
- <dd>
253
-
254
- <span class="param-type">Array</span>
255
-
256
-
257
- </dd>
258
- </dl>
259
-
260
-
261
-
262
-
263
-
264
-
265
- <h5>Example</h5>
266
-
267
- <pre class="prettyprint"><code>hash.array();</code></pre>
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
-
276
-
277
- <h4 class="name" id="arrayBuffer"><span class="type-signature"></span>arrayBuffer<span class="signature">()</span><span class="type-signature"> &rarr; {ArrayBuffer}</span></h4>
278
-
279
-
280
-
281
-
282
-
283
-
284
- <div class="description">
285
- Output hash as ArrayBuffer
286
- </div>
287
-
288
-
289
-
290
-
291
-
292
-
293
-
294
-
295
-
296
-
297
-
298
-
299
-
300
- <dl class="details">
301
-
302
-
303
-
304
-
305
-
306
-
307
-
308
-
309
-
310
-
311
-
312
-
313
-
314
-
315
-
316
-
317
-
318
-
319
-
320
-
321
-
322
-
323
-
324
-
325
-
326
-
327
- <dt class="tag-source">Source:</dt>
328
- <dd class="tag-source"><ul class="dummy"><li>
329
- <a href="md5.js.html">md5.js</a>, <a href="md5.js.html#line591">line 591</a>
330
- </li></ul></dd>
331
-
332
-
333
-
334
-
335
-
336
- <dt class="tag-see">See:</dt>
337
- <dd class="tag-see">
338
- <ul>
339
- <li><a href="md5.html#.arrayBuffer">md5.arrayBuffer</a></li>
340
- </ul>
341
- </dd>
342
-
343
-
344
-
345
- </dl>
346
-
347
-
348
-
349
-
350
-
351
-
352
-
353
-
354
-
355
-
356
-
357
-
358
-
359
- <h5>Returns:</h5>
360
-
361
-
362
- <div class="param-desc">
363
- ArrayBuffer
364
- </div>
365
-
366
-
367
-
368
- <dl>
369
- <dt>
370
- Type
371
- </dt>
372
- <dd>
373
-
374
- <span class="param-type">ArrayBuffer</span>
375
-
376
-
377
- </dd>
378
- </dl>
379
-
380
-
381
-
382
-
383
-
384
-
385
- <h5>Example</h5>
386
-
387
- <pre class="prettyprint"><code>hash.arrayBuffer();</code></pre>
388
-
389
-
390
-
391
-
392
-
393
-
394
-
395
-
396
-
397
- <h4 class="name" id="base64"><span class="type-signature"></span>base64<span class="signature">()</span><span class="type-signature"> &rarr; {String}</span></h4>
398
-
399
-
400
-
401
-
402
-
403
-
404
- <div class="description">
405
- Output hash as base64 string
406
- </div>
407
-
408
-
409
-
410
-
411
-
412
-
413
-
414
-
415
-
416
-
417
-
418
-
419
-
420
- <dl class="details">
421
-
422
-
423
-
424
-
425
-
426
-
427
-
428
-
429
-
430
-
431
-
432
-
433
-
434
-
435
-
436
-
437
-
438
-
439
-
440
-
441
-
442
-
443
-
444
-
445
-
446
-
447
- <dt class="tag-source">Source:</dt>
448
- <dd class="tag-source"><ul class="dummy"><li>
449
- <a href="md5.js.html">md5.js</a>, <a href="md5.js.html#line626">line 626</a>
450
- </li></ul></dd>
451
-
452
-
453
-
454
-
455
-
456
- <dt class="tag-see">See:</dt>
457
- <dd class="tag-see">
458
- <ul>
459
- <li><a href="md5.html#.base64">md5.base64</a></li>
460
- </ul>
461
- </dd>
462
-
463
-
464
-
465
- </dl>
466
-
467
-
468
-
469
-
470
-
471
-
472
-
473
-
474
-
475
-
476
-
477
-
478
-
479
- <h5>Returns:</h5>
480
-
481
-
482
- <div class="param-desc">
483
- base64 string
484
- </div>
485
-
486
-
487
-
488
- <dl>
489
- <dt>
490
- Type
491
- </dt>
492
- <dd>
493
-
494
- <span class="param-type">String</span>
495
-
496
-
497
- </dd>
498
- </dl>
499
-
500
-
501
-
502
-
503
-
504
-
505
- <h5>Example</h5>
506
-
507
- <pre class="prettyprint"><code>hash.base64();</code></pre>
508
-
509
-
510
-
511
-
512
-
513
-
514
-
515
-
516
-
517
- <h4 class="name" id="buffer"><span class="type-signature"></span>buffer<span class="signature">()</span><span class="type-signature"> &rarr; {ArrayBuffer}</span></h4>
518
-
519
-
520
-
521
-
522
-
523
-
524
- <div class="description">
525
- Output hash as ArrayBuffer
526
- </div>
527
-
528
-
529
-
530
-
531
-
532
-
533
-
534
-
535
-
536
-
537
-
538
-
539
-
540
- <dl class="details">
541
-
542
-
543
-
544
-
545
-
546
-
547
-
548
-
549
-
550
-
551
-
552
-
553
-
554
-
555
-
556
-
557
- <dt class="important tag-deprecated">Deprecated:</dt><dd><ul class="dummy"><li>This maybe confuse with Buffer in node.js. Please use arrayBuffer instead.</li></ul></dd>
558
-
559
-
560
-
561
-
562
-
563
-
564
-
565
-
566
-
567
-
568
-
569
- <dt class="tag-source">Source:</dt>
570
- <dd class="tag-source"><ul class="dummy"><li>
571
- <a href="md5.js.html">md5.js</a>, <a href="md5.js.html#line613">line 613</a>
572
- </li></ul></dd>
573
-
574
-
575
-
576
-
577
-
578
- <dt class="tag-see">See:</dt>
579
- <dd class="tag-see">
580
- <ul>
581
- <li><a href="md5.html#.buffer">md5.buffer</a></li>
582
- </ul>
583
- </dd>
584
-
585
-
586
-
587
- </dl>
588
-
589
-
590
-
591
-
592
-
593
-
594
-
595
-
596
-
597
-
598
-
599
-
600
-
601
- <h5>Returns:</h5>
602
-
603
-
604
- <div class="param-desc">
605
- ArrayBuffer
606
- </div>
607
-
608
-
609
-
610
- <dl>
611
- <dt>
612
- Type
613
- </dt>
614
- <dd>
615
-
616
- <span class="param-type">ArrayBuffer</span>
617
-
618
-
619
- </dd>
620
- </dl>
621
-
622
-
623
-
624
-
625
-
626
-
627
- <h5>Example</h5>
628
-
629
- <pre class="prettyprint"><code>hash.buffer();</code></pre>
630
-
631
-
632
-
633
-
634
-
635
-
636
-
637
-
638
-
639
- <h4 class="name" id="digest"><span class="type-signature"></span>digest<span class="signature">()</span><span class="type-signature"> &rarr; {Array}</span></h4>
640
-
641
-
642
-
643
-
644
-
645
-
646
- <div class="description">
647
- Output hash as bytes array
648
- </div>
649
-
650
-
651
-
652
-
653
-
654
-
655
-
656
-
657
-
658
-
659
-
660
-
661
-
662
- <dl class="details">
663
-
664
-
665
-
666
-
667
-
668
-
669
-
670
-
671
-
672
-
673
-
674
-
675
-
676
-
677
-
678
-
679
-
680
-
681
-
682
-
683
-
684
-
685
-
686
-
687
-
688
-
689
- <dt class="tag-source">Source:</dt>
690
- <dd class="tag-source"><ul class="dummy"><li>
691
- <a href="md5.js.html">md5.js</a>, <a href="md5.js.html#line557">line 557</a>
692
- </li></ul></dd>
693
-
694
-
695
-
696
-
697
-
698
- <dt class="tag-see">See:</dt>
699
- <dd class="tag-see">
700
- <ul>
701
- <li><a href="md5.html#.digest">md5.digest</a></li>
702
- </ul>
703
- </dd>
704
-
705
-
706
-
707
- </dl>
708
-
709
-
710
-
711
-
712
-
713
-
714
-
715
-
716
-
717
-
718
-
719
-
720
-
721
- <h5>Returns:</h5>
722
-
723
-
724
- <div class="param-desc">
725
- Bytes array
726
- </div>
727
-
728
-
729
-
730
- <dl>
731
- <dt>
732
- Type
733
- </dt>
734
- <dd>
735
-
736
- <span class="param-type">Array</span>
737
-
738
-
739
- </dd>
740
- </dl>
741
-
742
-
743
-
744
-
745
-
746
-
747
- <h5>Example</h5>
748
-
749
- <pre class="prettyprint"><code>hash.digest();</code></pre>
750
-
751
-
752
-
753
-
754
-
755
-
756
-
757
-
758
-
759
- <h4 class="name" id="hex"><span class="type-signature"></span>hex<span class="signature">()</span><span class="type-signature"> &rarr; {String}</span></h4>
760
-
761
-
762
-
763
-
764
-
765
-
766
- <div class="description">
767
- Output hash as hex string
768
- </div>
769
-
770
-
771
-
772
-
773
-
774
-
775
-
776
-
777
-
778
-
779
-
780
-
781
-
782
- <dl class="details">
783
-
784
-
785
-
786
-
787
-
788
-
789
-
790
-
791
-
792
-
793
-
794
-
795
-
796
-
797
-
798
-
799
-
800
-
801
-
802
-
803
-
804
-
805
-
806
-
807
-
808
-
809
- <dt class="tag-source">Source:</dt>
810
- <dd class="tag-source"><ul class="dummy"><li>
811
- <a href="md5.js.html">md5.js</a>, <a href="md5.js.html#line512">line 512</a>
812
- </li></ul></dd>
813
-
814
-
815
-
816
-
817
-
818
- <dt class="tag-see">See:</dt>
819
- <dd class="tag-see">
820
- <ul>
821
- <li><a href="md5.html#.hex">md5.hex</a></li>
822
- </ul>
823
- </dd>
824
-
825
-
826
-
827
- </dl>
828
-
829
-
830
-
831
-
832
-
833
-
834
-
835
-
836
-
837
-
838
-
839
-
840
-
841
- <h5>Returns:</h5>
842
-
843
-
844
- <div class="param-desc">
845
- Hex string
846
- </div>
847
-
848
-
849
-
850
- <dl>
851
- <dt>
852
- Type
853
- </dt>
854
- <dd>
855
-
856
- <span class="param-type">String</span>
857
-
858
-
859
- </dd>
860
- </dl>
861
-
862
-
863
-
864
-
865
-
866
-
867
- <h5>Example</h5>
868
-
869
- <pre class="prettyprint"><code>hash.hex();</code></pre>
870
-
871
-
872
-
873
-
874
-
875
-
876
-
877
-
878
-
879
- <h4 class="name" id="toString"><span class="type-signature"></span>toString<span class="signature">()</span><span class="type-signature"> &rarr; {String}</span></h4>
880
-
881
-
882
-
883
-
884
-
885
-
886
- <div class="description">
887
- Output hash as hex string
888
- </div>
889
-
890
-
891
-
892
-
893
-
894
-
895
-
896
-
897
-
898
-
899
-
900
-
901
-
902
- <dl class="details">
903
-
904
-
905
-
906
-
907
-
908
-
909
-
910
-
911
-
912
-
913
-
914
-
915
-
916
-
917
-
918
-
919
-
920
-
921
-
922
-
923
-
924
-
925
-
926
-
927
-
928
-
929
- <dt class="tag-source">Source:</dt>
930
- <dd class="tag-source"><ul class="dummy"><li>
931
- <a href="md5.js.html">md5.js</a>, <a href="md5.js.html#line545">line 545</a>
932
- </li></ul></dd>
933
-
934
-
935
-
936
-
937
-
938
- <dt class="tag-see">See:</dt>
939
- <dd class="tag-see">
940
- <ul>
941
- <li><a href="md5.html#.hex">md5.hex</a></li>
942
- </ul>
943
- </dd>
944
-
945
-
946
-
947
- </dl>
948
-
949
-
950
-
951
-
952
-
953
-
954
-
955
-
956
-
957
-
958
-
959
-
960
-
961
- <h5>Returns:</h5>
962
-
963
-
964
- <div class="param-desc">
965
- Hex string
966
- </div>
967
-
968
-
969
-
970
- <dl>
971
- <dt>
972
- Type
973
- </dt>
974
- <dd>
975
-
976
- <span class="param-type">String</span>
977
-
978
-
979
- </dd>
980
- </dl>
981
-
982
-
983
-
984
-
985
-
986
-
987
- <h5>Example</h5>
988
-
989
- <pre class="prettyprint"><code>hash.toString();</code></pre>
990
-
991
-
992
-
993
-
994
-
995
-
996
-
997
-
998
-
999
- <h4 class="name" id="update"><span class="type-signature"></span>update<span class="signature">(message)</span><span class="type-signature"> &rarr; {<a href="Md5_.html">Md5</a>}</span></h4>
1000
-
1001
-
1002
-
1003
-
1004
-
1005
-
1006
- <div class="description">
1007
- Update hash
1008
- </div>
1009
-
1010
-
1011
-
1012
-
1013
-
1014
-
1015
-
1016
-
1017
-
1018
- <h5>Parameters:</h5>
1019
-
1020
-
1021
- <table class="params">
1022
- <thead>
1023
- <tr>
1024
-
1025
- <th>Name</th>
1026
-
1027
-
1028
- <th>Type</th>
1029
-
1030
-
1031
-
1032
-
1033
-
1034
- <th class="last">Description</th>
1035
- </tr>
1036
- </thead>
1037
-
1038
- <tbody>
1039
-
1040
-
1041
- <tr>
1042
-
1043
- <td class="name"><code>message</code></td>
1044
-
1045
-
1046
- <td class="type">
1047
-
1048
-
1049
- <span class="param-type">String</span>
1050
- |
1051
-
1052
- <span class="param-type">Array</span>
1053
- |
1054
-
1055
- <span class="param-type">Uint8Array</span>
1056
- |
1057
-
1058
- <span class="param-type">ArrayBuffer</span>
1059
-
1060
-
1061
-
1062
- </td>
1063
-
1064
-
1065
-
1066
-
1067
-
1068
- <td class="description last">message to hash</td>
1069
- </tr>
1070
-
1071
-
1072
- </tbody>
1073
- </table>
1074
-
1075
-
1076
-
1077
-
1078
-
1079
-
1080
- <dl class="details">
1081
-
1082
-
1083
-
1084
-
1085
-
1086
-
1087
-
1088
-
1089
-
1090
-
1091
-
1092
-
1093
-
1094
-
1095
-
1096
-
1097
-
1098
-
1099
-
1100
-
1101
-
1102
-
1103
-
1104
-
1105
-
1106
-
1107
- <dt class="tag-source">Source:</dt>
1108
- <dd class="tag-source"><ul class="dummy"><li>
1109
- <a href="md5.js.html">md5.js</a>, <a href="md5.js.html#line206">line 206</a>
1110
- </li></ul></dd>
1111
-
1112
-
1113
-
1114
-
1115
-
1116
- <dt class="tag-see">See:</dt>
1117
- <dd class="tag-see">
1118
- <ul>
1119
- <li><a href="md5.html#.update">md5.update</a></li>
1120
- </ul>
1121
- </dd>
1122
-
1123
-
1124
-
1125
- </dl>
1126
-
1127
-
1128
-
1129
-
1130
-
1131
-
1132
-
1133
-
1134
-
1135
-
1136
-
1137
-
1138
-
1139
- <h5>Returns:</h5>
1140
-
1141
-
1142
- <div class="param-desc">
1143
- Md5 object.
1144
- </div>
1145
-
1146
-
1147
-
1148
- <dl>
1149
- <dt>
1150
- Type
1151
- </dt>
1152
- <dd>
1153
-
1154
- <span class="param-type"><a href="Md5_.html">Md5</a></span>
1155
-
1156
-
1157
- </dd>
1158
- </dl>
1159
-
1160
-
1161
-
1162
-
1163
-
1164
-
1165
-
1166
-
1167
-
1168
-
1169
-
1170
-
1171
-
1172
- </article>
1173
-
1174
- </section>
1175
-
1176
-
1177
-
1178
-
1179
- </div>
1180
-
1181
- <nav>
1182
- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Md5_.html">Md5</a></li></ul><h3>Namespaces</h3><ul><li><a href="md5.html">md5</a></li></ul><h3>Global</h3><ul><li><a href="global.html#md5%2508">md5</a></li></ul>
1183
- </nav>
1184
-
1185
- <br class="clear">
1186
-
1187
- <footer>
1188
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Oct 31 2017 20:29:31 GMT+0800 (CST)
1189
- </footer>
1190
-
1191
- <script> prettyPrint(); </script>
1192
- <script src="scripts/linenumber.js"> </script>
1193
- </body>
1194
- </html>