File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 23
23
// How to use?
24
24
// <script src="sha256.js"></script>
25
25
// then
26
- // const shas256 = SHA256.md5 ('string');
26
+ // const shas256 = SHA256.sha256 ('string');
27
27
// or
28
- // const shas256 = new SHA256();
29
- // const a = shas256 .init().update_str('str1').update_str('str2').end().$hex;
30
- // const b = shas256 .init().update8(new UInt8Array(something)) .end().$bin;
28
+ // const sha256s = new SHA256();
29
+ // const a = sha256s .init().update_str('str1').update_str('str2').end().$hex;
30
+ // const b = sha256s .init().update8(new UInt8Array(something)) .end().$bin;
31
31
// This can be repeated: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32
32
33
33
const SHA256 = (_=>_())(() => {
@@ -85,7 +85,6 @@ const SHA256 = (_=>_())(() => {
85
85
}
86
86
}
87
87
88
- // XXX bis hier korrekt
89
88
///////////////////////
90
89
91
90
!ctx a 0
@@ -260,7 +259,6 @@ const SHA256 = (_=>_())(() => {
260
259
}
261
260
262
261
//////////////////////
263
- // XXX ab hier vermutlich korrekt
264
262
265
263
update8(b) // Uint8Array
266
264
{
You can’t perform that action at this time.
0 commit comments