Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
sheng du
ghpay
Commits
13777da5
Commit
13777da5
authored
1 year ago
by
sheng du
Browse files
Options
Download
Email Patches
Plain Diff
init
parents
master
No related merge requests found
Pipeline
#816
failed with stages
in 0 seconds
Changes
158
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
798 additions
and
0 deletions
+798
-0
node_modules/_is-buffer@1.1.6@is-buffer/test/basic.js
node_modules/_is-buffer@1.1.6@is-buffer/test/basic.js
+24
-0
node_modules/_md5@2.3.0@md5/.travis.yml
node_modules/_md5@2.3.0@md5/.travis.yml
+7
-0
node_modules/_md5@2.3.0@md5/LICENSE
node_modules/_md5@2.3.0@md5/LICENSE
+27
-0
node_modules/_md5@2.3.0@md5/README.md
node_modules/_md5@2.3.0@md5/README.md
+111
-0
node_modules/_md5@2.3.0@md5/demo/index.html
node_modules/_md5@2.3.0@md5/demo/index.html
+48
-0
node_modules/_md5@2.3.0@md5/dist/md5.min.js
node_modules/_md5@2.3.0@md5/dist/md5.min.js
+8
-0
node_modules/_md5@2.3.0@md5/md5.js
node_modules/_md5@2.3.0@md5/md5.js
+160
-0
node_modules/_md5@2.3.0@md5/node_modules/charenc/LICENSE.mkd
node_modules/_md5@2.3.0@md5/node_modules/charenc/LICENSE.mkd
+27
-0
node_modules/_md5@2.3.0@md5/node_modules/charenc/README.js
node_modules/_md5@2.3.0@md5/node_modules/charenc/README.js
+1
-0
node_modules/_md5@2.3.0@md5/node_modules/charenc/charenc.js
node_modules/_md5@2.3.0@md5/node_modules/charenc/charenc.js
+33
-0
node_modules/_md5@2.3.0@md5/node_modules/charenc/package.json
..._modules/_md5@2.3.0@md5/node_modules/charenc/package.json
+28
-0
node_modules/_md5@2.3.0@md5/node_modules/crypt/LICENSE.mkd
node_modules/_md5@2.3.0@md5/node_modules/crypt/LICENSE.mkd
+27
-0
node_modules/_md5@2.3.0@md5/node_modules/crypt/README.mkd
node_modules/_md5@2.3.0@md5/node_modules/crypt/README.mkd
+1
-0
node_modules/_md5@2.3.0@md5/node_modules/crypt/crypt.js
node_modules/_md5@2.3.0@md5/node_modules/crypt/crypt.js
+96
-0
node_modules/_md5@2.3.0@md5/node_modules/crypt/package.json
node_modules/_md5@2.3.0@md5/node_modules/crypt/package.json
+26
-0
node_modules/_md5@2.3.0@md5/node_modules/is-buffer/LICENSE
node_modules/_md5@2.3.0@md5/node_modules/is-buffer/LICENSE
+21
-0
node_modules/_md5@2.3.0@md5/node_modules/is-buffer/README.md
node_modules/_md5@2.3.0@md5/node_modules/is-buffer/README.md
+53
-0
node_modules/_md5@2.3.0@md5/node_modules/is-buffer/index.js
node_modules/_md5@2.3.0@md5/node_modules/is-buffer/index.js
+21
-0
node_modules/_md5@2.3.0@md5/node_modules/is-buffer/package.json
...odules/_md5@2.3.0@md5/node_modules/is-buffer/package.json
+55
-0
node_modules/_md5@2.3.0@md5/node_modules/is-buffer/test/basic.js
...dules/_md5@2.3.0@md5/node_modules/is-buffer/test/basic.js
+24
-0
No files found.
node_modules/_is-buffer@1.1.6@is-buffer/test/basic.js
0 → 100644
View file @
13777da5
var
isBuffer
=
require
(
'
../
'
)
var
test
=
require
(
'
tape
'
)
test
(
'
is-buffer
'
,
function
(
t
)
{
t
.
equal
(
isBuffer
(
Buffer
.
alloc
(
4
)),
true
,
'
new Buffer(4)
'
)
t
.
equal
(
isBuffer
(
Buffer
.
allocUnsafeSlow
(
100
)),
true
,
'
SlowBuffer(100)
'
)
t
.
equal
(
isBuffer
(
undefined
),
false
,
'
undefined
'
)
t
.
equal
(
isBuffer
(
null
),
false
,
'
null
'
)
t
.
equal
(
isBuffer
(
''
),
false
,
'
empty string
'
)
t
.
equal
(
isBuffer
(
true
),
false
,
'
true
'
)
t
.
equal
(
isBuffer
(
false
),
false
,
'
false
'
)
t
.
equal
(
isBuffer
(
0
),
false
,
'
0
'
)
t
.
equal
(
isBuffer
(
1
),
false
,
'
1
'
)
t
.
equal
(
isBuffer
(
1.0
),
false
,
'
1.0
'
)
t
.
equal
(
isBuffer
(
'
string
'
),
false
,
'
string
'
)
t
.
equal
(
isBuffer
({}),
false
,
'
{}
'
)
t
.
equal
(
isBuffer
([]),
false
,
'
[]
'
)
t
.
equal
(
isBuffer
(
function
foo
()
{}),
false
,
'
function foo () {}
'
)
t
.
equal
(
isBuffer
({
isBuffer
:
null
}),
false
,
'
{ isBuffer: null }
'
)
t
.
equal
(
isBuffer
({
isBuffer
:
function
()
{
throw
new
Error
()
}
}),
false
,
'
{ isBuffer: function () { throw new Error() } }
'
)
t
.
end
()
})
This diff is collapsed.
Click to expand it.
node_modules/_md5@2.3.0@md5/.travis.yml
0 → 100644
View file @
13777da5
language
:
node_js
node_js
:
-
0.12
-
4
-
5
-
6
-
7
This diff is collapsed.
Click to expand it.
node_modules/_md5@2.3.0@md5/LICENSE
0 → 100644
View file @
13777da5
Copyright © 2011-2012, Paul Vorbach.
Copyright © 2009, Jeff Mott.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
* Neither the name Crypto-JS nor the names of its contributors may be used to
endorse or promote products derived from this software without specific prior
written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This diff is collapsed.
Click to expand it.
node_modules/_md5@2.3.0@md5/README.md
0 → 100644
View file @
13777da5
# MD5
[

](http://travis-ci.org/pvorb/node-md5)
[

](http://npm-stat.com/charts.html?package=md5)
a JavaScript function for hashing messages with MD5.
node-md5 is being sponsored by the following tool; please help to support us by taking a look and signing up to a free trial
<a
href=
"https://tracking.gitads.io/?repo=node-md5"
><img
src=
"https://images.gitads.io/node-md5"
alt=
"GitAds"
/></a>
## Installation
You can use this package on the server side as well as the client side.
### [Node.js](http://nodejs.org/):
~~~
npm install md5
~~~
## API
~~~
javascript
md5
(
message
)
~~~
*
`message`
--
`String`
,
`Buffer`
,
`Array`
or
`Uint8Array`
*
returns
`String`
## Usage
~~~
javascript
var
md5
=
require
(
'
md5
'
);
console
.
log
(
md5
(
'
message
'
));
~~~
This will print the following
~~~
78e731027d8fd50ed642340b7c9a63b3
~~~
It supports buffers, too
~~~
javascript
var
fs
=
require
(
'
fs
'
);
var
md5
=
require
(
'
md5
'
);
fs
.
readFile
(
'
example.txt
'
,
function
(
err
,
buf
)
{
console
.
log
(
md5
(
buf
));
});
~~~
## Versions
Before version 2.0.0 there were two packages called md5 on npm, one lowercase,
one uppercase (the one you're looking at). As of version 2.0.0, all new versions
of this module will go to lowercase
[
md5
](
https://www.npmjs.com/package/md5
)
on
npm. To use the correct version, users of this module will have to change their
code from
`require('MD5')`
to
`require('md5')`
if they want to use versions >=
2.
0.0.
## Bugs and Issues
If you encounter any bugs or issues, feel free to open an issue at
[
github
](
https://github.com/pvorb/node-md5/issues
)
.
## Credits
This package is based on the work of Jeff Mott, who did a pure JS implementation
of the MD5 algorithm that was published by Ronald L. Rivest in 1991. I needed a
npm package of the algorithm, so I used Jeff’s implementation for this package.
The original implementation can be found in the
[
CryptoJS
](
http://code.google.com/p/crypto-js/
)
project.
## License
~~~
Copyright © 2011-2015, Paul Vorbach.
Copyright © 2009, Jeff Mott.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
* Neither the name Crypto-JS nor the names of its contributors may be used to
endorse or promote products derived from this software without specific prior
written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
~~~
This diff is collapsed.
Click to expand it.
node_modules/_md5@2.3.0@md5/demo/index.html
0 → 100644
View file @
13777da5
<input
type=
"file"
id=
"input"
>
<output
id=
"output"
></output>
<style>
output
::before
{
content
:
"output:"
;
}
output
{
display
:
block
;
padding
:
1em
;
margin
:
1em
;
outline
:
1px
solid
gray
;
white-space
:
pre-wrap
;
}
</style>
<script
src=
"../dist/md5.min.js"
></script>
<script>
function
readAsArrayBuffer
(
file
){
return
new
Promise
(
function
(
resolve
)
{
var
reader
=
new
FileReader
();
reader
.
readAsArrayBuffer
(
file
)
reader
.
onload
=
function
(
e
)
{
resolve
(
e
.
target
.
result
)
};
});
}
input
.
onchange
=
function
(
e
)
{
var
file
=
input
.
files
[
0
];
readAsArrayBuffer
(
file
)
.
then
(
buffer
=>
{
console
.
log
(
buffer
);
var
now
=
performance
.
now
();
var
hash
=
MD5
(
buffer
);
var
after
=
performance
.
now
()
-
now
;
output
.
innerHTML
=
`
file:
${
file
.
name
}
size:
${
file
.
size
}
bytes
type:
${
file
.
type
}
md5:
${
hash
}
duration:
${
after
.
toFixed
(
2
)}
ms
`
;
})
}
</script>
This diff is collapsed.
Click to expand it.
node_modules/_md5@2.3.0@md5/dist/md5.min.js
0 → 100644
View file @
13777da5
var
MD5
=
function
(
r
){
function
n
(
o
){
if
(
t
[
o
])
return
t
[
o
].
exports
;
var
e
=
t
[
o
]
=
{
i
:
o
,
l
:
!
1
,
exports
:{}};
return
r
[
o
].
call
(
e
.
exports
,
e
,
e
.
exports
,
n
),
e
.
l
=!
0
,
e
.
exports
}
var
t
=
{};
return
n
.
m
=
r
,
n
.
c
=
t
,
n
.
i
=
function
(
r
){
return
r
},
n
.
d
=
function
(
r
,
t
,
o
){
n
.
o
(
r
,
t
)
||
Object
.
defineProperty
(
r
,
t
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
o
})},
n
.
n
=
function
(
r
){
var
t
=
r
&&
r
.
__esModule
?
function
(){
return
r
.
default
}:
function
(){
return
r
};
return
n
.
d
(
t
,
"
a
"
,
t
),
t
},
n
.
o
=
function
(
r
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
r
,
n
)},
n
.
p
=
""
,
n
(
n
.
s
=
4
)}([
function
(
r
,
n
){
var
t
=
{
utf8
:{
stringToBytes
:
function
(
r
){
return
t
.
bin
.
stringToBytes
(
unescape
(
encodeURIComponent
(
r
)))},
bytesToString
:
function
(
r
){
return
decodeURIComponent
(
escape
(
t
.
bin
.
bytesToString
(
r
)))}},
bin
:{
stringToBytes
:
function
(
r
){
for
(
var
n
=
[],
t
=
0
;
t
<
r
.
length
;
t
++
)
n
.
push
(
255
&
r
.
charCodeAt
(
t
));
return
n
},
bytesToString
:
function
(
r
){
for
(
var
n
=
[],
t
=
0
;
t
<
r
.
length
;
t
++
)
n
.
push
(
String
.
fromCharCode
(
r
[
t
]));
return
n
.
join
(
""
)}}};
r
.
exports
=
t
},
function
(
r
,
n
,
t
){
!
function
(){
var
n
=
t
(
2
),
o
=
t
(
0
).
utf8
,
e
=
t
(
3
),
u
=
t
(
0
).
bin
,
i
=
function
(
r
,
t
){
r
.
constructor
==
String
?
r
=
t
&&
"
binary
"
===
t
.
encoding
?
u
.
stringToBytes
(
r
):
o
.
stringToBytes
(
r
):
e
(
r
)?
r
=
Array
.
prototype
.
slice
.
call
(
r
,
0
):
Array
.
isArray
(
r
)
||
(
r
=
r
.
toString
());
for
(
var
f
=
n
.
bytesToWords
(
r
),
s
=
8
*
r
.
length
,
c
=
1732584193
,
a
=-
271733879
,
l
=-
1732584194
,
g
=
271733878
,
h
=
0
;
h
<
f
.
length
;
h
++
)
f
[
h
]
=
16711935
&
(
f
[
h
]
<<
8
|
f
[
h
]
>>>
24
)
|
4278255360
&
(
f
[
h
]
<<
24
|
f
[
h
]
>>>
8
);
f
[
s
>>>
5
]
|=
128
<<
s
%
32
,
f
[
14
+
(
s
+
64
>>>
9
<<
4
)]
=
s
;
for
(
var
p
=
i
.
_ff
,
y
=
i
.
_gg
,
v
=
i
.
_hh
,
d
=
i
.
_ii
,
h
=
0
;
h
<
f
.
length
;
h
+=
16
){
var
b
=
c
,
T
=
a
,
x
=
l
,
B
=
g
;
c
=
p
(
c
,
a
,
l
,
g
,
f
[
h
+
0
],
7
,
-
680876936
),
g
=
p
(
g
,
c
,
a
,
l
,
f
[
h
+
1
],
12
,
-
389564586
),
l
=
p
(
l
,
g
,
c
,
a
,
f
[
h
+
2
],
17
,
606105819
),
a
=
p
(
a
,
l
,
g
,
c
,
f
[
h
+
3
],
22
,
-
1044525330
),
c
=
p
(
c
,
a
,
l
,
g
,
f
[
h
+
4
],
7
,
-
176418897
),
g
=
p
(
g
,
c
,
a
,
l
,
f
[
h
+
5
],
12
,
1200080426
),
l
=
p
(
l
,
g
,
c
,
a
,
f
[
h
+
6
],
17
,
-
1473231341
),
a
=
p
(
a
,
l
,
g
,
c
,
f
[
h
+
7
],
22
,
-
45705983
),
c
=
p
(
c
,
a
,
l
,
g
,
f
[
h
+
8
],
7
,
1770035416
),
g
=
p
(
g
,
c
,
a
,
l
,
f
[
h
+
9
],
12
,
-
1958414417
),
l
=
p
(
l
,
g
,
c
,
a
,
f
[
h
+
10
],
17
,
-
42063
),
a
=
p
(
a
,
l
,
g
,
c
,
f
[
h
+
11
],
22
,
-
1990404162
),
c
=
p
(
c
,
a
,
l
,
g
,
f
[
h
+
12
],
7
,
1804603682
),
g
=
p
(
g
,
c
,
a
,
l
,
f
[
h
+
13
],
12
,
-
40341101
),
l
=
p
(
l
,
g
,
c
,
a
,
f
[
h
+
14
],
17
,
-
1502002290
),
a
=
p
(
a
,
l
,
g
,
c
,
f
[
h
+
15
],
22
,
1236535329
),
c
=
y
(
c
,
a
,
l
,
g
,
f
[
h
+
1
],
5
,
-
165796510
),
g
=
y
(
g
,
c
,
a
,
l
,
f
[
h
+
6
],
9
,
-
1069501632
),
l
=
y
(
l
,
g
,
c
,
a
,
f
[
h
+
11
],
14
,
643717713
),
a
=
y
(
a
,
l
,
g
,
c
,
f
[
h
+
0
],
20
,
-
373897302
),
c
=
y
(
c
,
a
,
l
,
g
,
f
[
h
+
5
],
5
,
-
701558691
),
g
=
y
(
g
,
c
,
a
,
l
,
f
[
h
+
10
],
9
,
38016083
),
l
=
y
(
l
,
g
,
c
,
a
,
f
[
h
+
15
],
14
,
-
660478335
),
a
=
y
(
a
,
l
,
g
,
c
,
f
[
h
+
4
],
20
,
-
405537848
),
c
=
y
(
c
,
a
,
l
,
g
,
f
[
h
+
9
],
5
,
568446438
),
g
=
y
(
g
,
c
,
a
,
l
,
f
[
h
+
14
],
9
,
-
1019803690
),
l
=
y
(
l
,
g
,
c
,
a
,
f
[
h
+
3
],
14
,
-
187363961
),
a
=
y
(
a
,
l
,
g
,
c
,
f
[
h
+
8
],
20
,
1163531501
),
c
=
y
(
c
,
a
,
l
,
g
,
f
[
h
+
13
],
5
,
-
1444681467
),
g
=
y
(
g
,
c
,
a
,
l
,
f
[
h
+
2
],
9
,
-
51403784
),
l
=
y
(
l
,
g
,
c
,
a
,
f
[
h
+
7
],
14
,
1735328473
),
a
=
y
(
a
,
l
,
g
,
c
,
f
[
h
+
12
],
20
,
-
1926607734
),
c
=
v
(
c
,
a
,
l
,
g
,
f
[
h
+
5
],
4
,
-
378558
),
g
=
v
(
g
,
c
,
a
,
l
,
f
[
h
+
8
],
11
,
-
2022574463
),
l
=
v
(
l
,
g
,
c
,
a
,
f
[
h
+
11
],
16
,
1839030562
),
a
=
v
(
a
,
l
,
g
,
c
,
f
[
h
+
14
],
23
,
-
35309556
),
c
=
v
(
c
,
a
,
l
,
g
,
f
[
h
+
1
],
4
,
-
1530992060
),
g
=
v
(
g
,
c
,
a
,
l
,
f
[
h
+
4
],
11
,
1272893353
),
l
=
v
(
l
,
g
,
c
,
a
,
f
[
h
+
7
],
16
,
-
155497632
),
a
=
v
(
a
,
l
,
g
,
c
,
f
[
h
+
10
],
23
,
-
1094730640
),
c
=
v
(
c
,
a
,
l
,
g
,
f
[
h
+
13
],
4
,
681279174
),
g
=
v
(
g
,
c
,
a
,
l
,
f
[
h
+
0
],
11
,
-
358537222
),
l
=
v
(
l
,
g
,
c
,
a
,
f
[
h
+
3
],
16
,
-
722521979
),
a
=
v
(
a
,
l
,
g
,
c
,
f
[
h
+
6
],
23
,
76029189
),
c
=
v
(
c
,
a
,
l
,
g
,
f
[
h
+
9
],
4
,
-
640364487
),
g
=
v
(
g
,
c
,
a
,
l
,
f
[
h
+
12
],
11
,
-
421815835
),
l
=
v
(
l
,
g
,
c
,
a
,
f
[
h
+
15
],
16
,
530742520
),
a
=
v
(
a
,
l
,
g
,
c
,
f
[
h
+
2
],
23
,
-
995338651
),
c
=
d
(
c
,
a
,
l
,
g
,
f
[
h
+
0
],
6
,
-
198630844
),
g
=
d
(
g
,
c
,
a
,
l
,
f
[
h
+
7
],
10
,
1126891415
),
l
=
d
(
l
,
g
,
c
,
a
,
f
[
h
+
14
],
15
,
-
1416354905
),
a
=
d
(
a
,
l
,
g
,
c
,
f
[
h
+
5
],
21
,
-
57434055
),
c
=
d
(
c
,
a
,
l
,
g
,
f
[
h
+
12
],
6
,
1700485571
),
g
=
d
(
g
,
c
,
a
,
l
,
f
[
h
+
3
],
10
,
-
1894986606
),
l
=
d
(
l
,
g
,
c
,
a
,
f
[
h
+
10
],
15
,
-
1051523
),
a
=
d
(
a
,
l
,
g
,
c
,
f
[
h
+
1
],
21
,
-
2054922799
),
c
=
d
(
c
,
a
,
l
,
g
,
f
[
h
+
8
],
6
,
1873313359
),
g
=
d
(
g
,
c
,
a
,
l
,
f
[
h
+
15
],
10
,
-
30611744
),
l
=
d
(
l
,
g
,
c
,
a
,
f
[
h
+
6
],
15
,
-
1560198380
),
a
=
d
(
a
,
l
,
g
,
c
,
f
[
h
+
13
],
21
,
1309151649
),
c
=
d
(
c
,
a
,
l
,
g
,
f
[
h
+
4
],
6
,
-
145523070
),
g
=
d
(
g
,
c
,
a
,
l
,
f
[
h
+
11
],
10
,
-
1120210379
),
l
=
d
(
l
,
g
,
c
,
a
,
f
[
h
+
2
],
15
,
718787259
),
a
=
d
(
a
,
l
,
g
,
c
,
f
[
h
+
9
],
21
,
-
343485551
),
c
=
c
+
b
>>>
0
,
a
=
a
+
T
>>>
0
,
l
=
l
+
x
>>>
0
,
g
=
g
+
B
>>>
0
}
return
n
.
endian
([
c
,
a
,
l
,
g
])};
i
.
_ff
=
function
(
r
,
n
,
t
,
o
,
e
,
u
,
i
){
var
f
=
r
+
(
n
&
t
|~
n
&
o
)
+
(
e
>>>
0
)
+
i
;
return
(
f
<<
u
|
f
>>>
32
-
u
)
+
n
},
i
.
_gg
=
function
(
r
,
n
,
t
,
o
,
e
,
u
,
i
){
var
f
=
r
+
(
n
&
o
|
t
&~
o
)
+
(
e
>>>
0
)
+
i
;
return
(
f
<<
u
|
f
>>>
32
-
u
)
+
n
},
i
.
_hh
=
function
(
r
,
n
,
t
,
o
,
e
,
u
,
i
){
var
f
=
r
+
(
n
^
t
^
o
)
+
(
e
>>>
0
)
+
i
;
return
(
f
<<
u
|
f
>>>
32
-
u
)
+
n
},
i
.
_ii
=
function
(
r
,
n
,
t
,
o
,
e
,
u
,
i
){
var
f
=
r
+
(
t
^
(
n
|~
o
))
+
(
e
>>>
0
)
+
i
;
return
(
f
<<
u
|
f
>>>
32
-
u
)
+
n
},
i
.
_blocksize
=
16
,
i
.
_digestsize
=
16
,
r
.
exports
=
function
(
r
,
t
){
if
(
void
0
===
r
||
null
===
r
)
throw
new
Error
(
"
Illegal argument
"
+
r
);
var
o
=
n
.
wordsToBytes
(
i
(
r
,
t
));
return
t
&&
t
.
asBytes
?
o
:
t
&&
t
.
asString
?
u
.
bytesToString
(
o
):
n
.
bytesToHex
(
o
)}}()},
function
(
r
,
n
){
!
function
(){
var
n
=
"
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/
"
,
t
=
{
rotl
:
function
(
r
,
n
){
return
r
<<
n
|
r
>>>
32
-
n
},
rotr
:
function
(
r
,
n
){
return
r
<<
32
-
n
|
r
>>>
n
},
endian
:
function
(
r
){
if
(
r
.
constructor
==
Number
)
return
16711935
&
t
.
rotl
(
r
,
8
)
|
4278255360
&
t
.
rotl
(
r
,
24
);
for
(
var
n
=
0
;
n
<
r
.
length
;
n
++
)
r
[
n
]
=
t
.
endian
(
r
[
n
]);
return
r
},
randomBytes
:
function
(
r
){
for
(
var
n
=
[];
r
>
0
;
r
--
)
n
.
push
(
Math
.
floor
(
256
*
Math
.
random
()));
return
n
},
bytesToWords
:
function
(
r
){
for
(
var
n
=
[],
t
=
0
,
o
=
0
;
t
<
r
.
length
;
t
++
,
o
+=
8
)
n
[
o
>>>
5
]
|=
r
[
t
]
<<
24
-
o
%
32
;
return
n
},
wordsToBytes
:
function
(
r
){
for
(
var
n
=
[],
t
=
0
;
t
<
32
*
r
.
length
;
t
+=
8
)
n
.
push
(
r
[
t
>>>
5
]
>>>
24
-
t
%
32
&
255
);
return
n
},
bytesToHex
:
function
(
r
){
for
(
var
n
=
[],
t
=
0
;
t
<
r
.
length
;
t
++
)
n
.
push
((
r
[
t
]
>>>
4
).
toString
(
16
)),
n
.
push
((
15
&
r
[
t
]).
toString
(
16
));
return
n
.
join
(
""
)},
hexToBytes
:
function
(
r
){
for
(
var
n
=
[],
t
=
0
;
t
<
r
.
length
;
t
+=
2
)
n
.
push
(
parseInt
(
r
.
substr
(
t
,
2
),
16
));
return
n
},
bytesToBase64
:
function
(
r
){
for
(
var
t
=
[],
o
=
0
;
o
<
r
.
length
;
o
+=
3
)
for
(
var
e
=
r
[
o
]
<<
16
|
r
[
o
+
1
]
<<
8
|
r
[
o
+
2
],
u
=
0
;
u
<
4
;
u
++
)
8
*
o
+
6
*
u
<=
8
*
r
.
length
?
t
.
push
(
n
.
charAt
(
e
>>>
6
*
(
3
-
u
)
&
63
)):
t
.
push
(
"
=
"
);
return
t
.
join
(
""
)},
base64ToBytes
:
function
(
r
){
r
=
r
.
replace
(
/
[^
A-Z0-9+
\/]
/gi
,
""
);
for
(
var
t
=
[],
o
=
0
,
e
=
0
;
o
<
r
.
length
;
e
=++
o
%
4
)
0
!=
e
&&
t
.
push
((
n
.
indexOf
(
r
.
charAt
(
o
-
1
))
&
Math
.
pow
(
2
,
-
2
*
e
+
8
)
-
1
)
<<
2
*
e
|
n
.
indexOf
(
r
.
charAt
(
o
))
>>>
6
-
2
*
e
);
return
t
}};
r
.
exports
=
t
}()},
function
(
r
,
n
){
function
t
(
r
){
return
!!
r
.
constructor
&&
"
function
"
==
typeof
r
.
constructor
.
isBuffer
&&
r
.
constructor
.
isBuffer
(
r
)}
function
o
(
r
){
return
"
function
"
==
typeof
r
.
readFloatLE
&&
"
function
"
==
typeof
r
.
slice
&&
t
(
r
.
slice
(
0
,
0
))}
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
r
.
exports
=
function
(
r
){
return
null
!=
r
&&
(
t
(
r
)
||
o
(
r
)
||!!
r
.
_isBuffer
)}},
function
(
r
,
n
,
t
){
r
.
exports
=
t
(
1
)}]);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
node_modules/_md5@2.3.0@md5/md5.js
0 → 100644
View file @
13777da5
(
function
(){
var
crypt
=
require
(
'
crypt
'
),
utf8
=
require
(
'
charenc
'
).
utf8
,
isBuffer
=
require
(
'
is-buffer
'
),
bin
=
require
(
'
charenc
'
).
bin
,
// The core
md5
=
function
(
message
,
options
)
{
// Convert to byte array
if
(
message
.
constructor
==
String
)
if
(
options
&&
options
.
encoding
===
'
binary
'
)
message
=
bin
.
stringToBytes
(
message
);
else
message
=
utf8
.
stringToBytes
(
message
);
else
if
(
isBuffer
(
message
))
message
=
Array
.
prototype
.
slice
.
call
(
message
,
0
);
else
if
(
!
Array
.
isArray
(
message
)
&&
message
.
constructor
!==
Uint8Array
)
message
=
message
.
toString
();
// else, assume byte array already
var
m
=
crypt
.
bytesToWords
(
message
),
l
=
message
.
length
*
8
,
a
=
1732584193
,
b
=
-
271733879
,
c
=
-
1732584194
,
d
=
271733878
;
// Swap endian
for
(
var
i
=
0
;
i
<
m
.
length
;
i
++
)
{
m
[
i
]
=
((
m
[
i
]
<<
8
)
|
(
m
[
i
]
>>>
24
))
&
0x00FF00FF
|
((
m
[
i
]
<<
24
)
|
(
m
[
i
]
>>>
8
))
&
0xFF00FF00
;
}
// Padding
m
[
l
>>>
5
]
|=
0x80
<<
(
l
%
32
);
m
[(((
l
+
64
)
>>>
9
)
<<
4
)
+
14
]
=
l
;
// Method shortcuts
var
FF
=
md5
.
_ff
,
GG
=
md5
.
_gg
,
HH
=
md5
.
_hh
,
II
=
md5
.
_ii
;
for
(
var
i
=
0
;
i
<
m
.
length
;
i
+=
16
)
{
var
aa
=
a
,
bb
=
b
,
cc
=
c
,
dd
=
d
;
a
=
FF
(
a
,
b
,
c
,
d
,
m
[
i
+
0
],
7
,
-
680876936
);
d
=
FF
(
d
,
a
,
b
,
c
,
m
[
i
+
1
],
12
,
-
389564586
);
c
=
FF
(
c
,
d
,
a
,
b
,
m
[
i
+
2
],
17
,
606105819
);
b
=
FF
(
b
,
c
,
d
,
a
,
m
[
i
+
3
],
22
,
-
1044525330
);
a
=
FF
(
a
,
b
,
c
,
d
,
m
[
i
+
4
],
7
,
-
176418897
);
d
=
FF
(
d
,
a
,
b
,
c
,
m
[
i
+
5
],
12
,
1200080426
);
c
=
FF
(
c
,
d
,
a
,
b
,
m
[
i
+
6
],
17
,
-
1473231341
);
b
=
FF
(
b
,
c
,
d
,
a
,
m
[
i
+
7
],
22
,
-
45705983
);
a
=
FF
(
a
,
b
,
c
,
d
,
m
[
i
+
8
],
7
,
1770035416
);
d
=
FF
(
d
,
a
,
b
,
c
,
m
[
i
+
9
],
12
,
-
1958414417
);
c
=
FF
(
c
,
d
,
a
,
b
,
m
[
i
+
10
],
17
,
-
42063
);
b
=
FF
(
b
,
c
,
d
,
a
,
m
[
i
+
11
],
22
,
-
1990404162
);
a
=
FF
(
a
,
b
,
c
,
d
,
m
[
i
+
12
],
7
,
1804603682
);
d
=
FF
(
d
,
a
,
b
,
c
,
m
[
i
+
13
],
12
,
-
40341101
);
c
=
FF
(
c
,
d
,
a
,
b
,
m
[
i
+
14
],
17
,
-
1502002290
);
b
=
FF
(
b
,
c
,
d
,
a
,
m
[
i
+
15
],
22
,
1236535329
);
a
=
GG
(
a
,
b
,
c
,
d
,
m
[
i
+
1
],
5
,
-
165796510
);
d
=
GG
(
d
,
a
,
b
,
c
,
m
[
i
+
6
],
9
,
-
1069501632
);
c
=
GG
(
c
,
d
,
a
,
b
,
m
[
i
+
11
],
14
,
643717713
);
b
=
GG
(
b
,
c
,
d
,
a
,
m
[
i
+
0
],
20
,
-
373897302
);
a
=
GG
(
a
,
b
,
c
,
d
,
m
[
i
+
5
],
5
,
-
701558691
);
d
=
GG
(
d
,
a
,
b
,
c
,
m
[
i
+
10
],
9
,
38016083
);
c
=
GG
(
c
,
d
,
a
,
b
,
m
[
i
+
15
],
14
,
-
660478335
);
b
=
GG
(
b
,
c
,
d
,
a
,
m
[
i
+
4
],
20
,
-
405537848
);
a
=
GG
(
a
,
b
,
c
,
d
,
m
[
i
+
9
],
5
,
568446438
);
d
=
GG
(
d
,
a
,
b
,
c
,
m
[
i
+
14
],
9
,
-
1019803690
);
c
=
GG
(
c
,
d
,
a
,
b
,
m
[
i
+
3
],
14
,
-
187363961
);
b
=
GG
(
b
,
c
,
d
,
a
,
m
[
i
+
8
],
20
,
1163531501
);
a
=
GG
(
a
,
b
,
c
,
d
,
m
[
i
+
13
],
5
,
-
1444681467
);
d
=
GG
(
d
,
a
,
b
,
c
,
m
[
i
+
2
],
9
,
-
51403784
);
c
=
GG
(
c
,
d
,
a
,
b
,
m
[
i
+
7
],
14
,
1735328473
);
b
=
GG
(
b
,
c
,
d
,
a
,
m
[
i
+
12
],
20
,
-
1926607734
);
a
=
HH
(
a
,
b
,
c
,
d
,
m
[
i
+
5
],
4
,
-
378558
);
d
=
HH
(
d
,
a
,
b
,
c
,
m
[
i
+
8
],
11
,
-
2022574463
);
c
=
HH
(
c
,
d
,
a
,
b
,
m
[
i
+
11
],
16
,
1839030562
);
b
=
HH
(
b
,
c
,
d
,
a
,
m
[
i
+
14
],
23
,
-
35309556
);
a
=
HH
(
a
,
b
,
c
,
d
,
m
[
i
+
1
],
4
,
-
1530992060
);
d
=
HH
(
d
,
a
,
b
,
c
,
m
[
i
+
4
],
11
,
1272893353
);
c
=
HH
(
c
,
d
,
a
,
b
,
m
[
i
+
7
],
16
,
-
155497632
);
b
=
HH
(
b
,
c
,
d
,
a
,
m
[
i
+
10
],
23
,
-
1094730640
);
a
=
HH
(
a
,
b
,
c
,
d
,
m
[
i
+
13
],
4
,
681279174
);
d
=
HH
(
d
,
a
,
b
,
c
,
m
[
i
+
0
],
11
,
-
358537222
);
c
=
HH
(
c
,
d
,
a
,
b
,
m
[
i
+
3
],
16
,
-
722521979
);
b
=
HH
(
b
,
c
,
d
,
a
,
m
[
i
+
6
],
23
,
76029189
);
a
=
HH
(
a
,
b
,
c
,
d
,
m
[
i
+
9
],
4
,
-
640364487
);
d
=
HH
(
d
,
a
,
b
,
c
,
m
[
i
+
12
],
11
,
-
421815835
);
c
=
HH
(
c
,
d
,
a
,
b
,
m
[
i
+
15
],
16
,
530742520
);
b
=
HH
(
b
,
c
,
d
,
a
,
m
[
i
+
2
],
23
,
-
995338651
);
a
=
II
(
a
,
b
,
c
,
d
,
m
[
i
+
0
],
6
,
-
198630844
);
d
=
II
(
d
,
a
,
b
,
c
,
m
[
i
+
7
],
10
,
1126891415
);
c
=
II
(
c
,
d
,
a
,
b
,
m
[
i
+
14
],
15
,
-
1416354905
);
b
=
II
(
b
,
c
,
d
,
a
,
m
[
i
+
5
],
21
,
-
57434055
);
a
=
II
(
a
,
b
,
c
,
d
,
m
[
i
+
12
],
6
,
1700485571
);
d
=
II
(
d
,
a
,
b
,
c
,
m
[
i
+
3
],
10
,
-
1894986606
);
c
=
II
(
c
,
d
,
a
,
b
,
m
[
i
+
10
],
15
,
-
1051523
);
b
=
II
(
b
,
c
,
d
,
a
,
m
[
i
+
1
],
21
,
-
2054922799
);
a
=
II
(
a
,
b
,
c
,
d
,
m
[
i
+
8
],
6
,
1873313359
);
d
=
II
(
d
,
a
,
b
,
c
,
m
[
i
+
15
],
10
,
-
30611744
);
c
=
II
(
c
,
d
,
a
,
b
,
m
[
i
+
6
],
15
,
-
1560198380
);
b
=
II
(
b
,
c
,
d
,
a
,
m
[
i
+
13
],
21
,
1309151649
);
a
=
II
(
a
,
b
,
c
,
d
,
m
[
i
+
4
],
6
,
-
145523070
);
d
=
II
(
d
,
a
,
b
,
c
,
m
[
i
+
11
],
10
,
-
1120210379
);
c
=
II
(
c
,
d
,
a
,
b
,
m
[
i
+
2
],
15
,
718787259
);
b
=
II
(
b
,
c
,
d
,
a
,
m
[
i
+
9
],
21
,
-
343485551
);
a
=
(
a
+
aa
)
>>>
0
;
b
=
(
b
+
bb
)
>>>
0
;
c
=
(
c
+
cc
)
>>>
0
;
d
=
(
d
+
dd
)
>>>
0
;
}
return
crypt
.
endian
([
a
,
b
,
c
,
d
]);
};
// Auxiliary functions
md5
.
_ff
=
function
(
a
,
b
,
c
,
d
,
x
,
s
,
t
)
{
var
n
=
a
+
(
b
&
c
|
~
b
&
d
)
+
(
x
>>>
0
)
+
t
;
return
((
n
<<
s
)
|
(
n
>>>
(
32
-
s
)))
+
b
;
};
md5
.
_gg
=
function
(
a
,
b
,
c
,
d
,
x
,
s
,
t
)
{
var
n
=
a
+
(
b
&
d
|
c
&
~
d
)
+
(
x
>>>
0
)
+
t
;
return
((
n
<<
s
)
|
(
n
>>>
(
32
-
s
)))
+
b
;
};
md5
.
_hh
=
function
(
a
,
b
,
c
,
d
,
x
,
s
,
t
)
{
var
n
=
a
+
(
b
^
c
^
d
)
+
(
x
>>>
0
)
+
t
;
return
((
n
<<
s
)
|
(
n
>>>
(
32
-
s
)))
+
b
;
};
md5
.
_ii
=
function
(
a
,
b
,
c
,
d
,
x
,
s
,
t
)
{
var
n
=
a
+
(
c
^
(
b
|
~
d
))
+
(
x
>>>
0
)
+
t
;
return
((
n
<<
s
)
|
(
n
>>>
(
32
-
s
)))
+
b
;
};
// Package private blocksize
md5
.
_blocksize
=
16
;
md5
.
_digestsize
=
16
;
module
.
exports
=
function
(
message
,
options
)
{
if
(
message
===
undefined
||
message
===
null
)
throw
new
Error
(
'
Illegal argument
'
+
message
);
var
digestbytes
=
crypt
.
wordsToBytes
(
md5
(
message
,
options
));
return
options
&&
options
.
asBytes
?
digestbytes
:
options
&&
options
.
asString
?
bin
.
bytesToString
(
digestbytes
)
:
crypt
.
bytesToHex
(
digestbytes
);
};
})();
This diff is collapsed.
Click to expand it.
node_modules/_md5@2.3.0@md5/node_modules/charenc/LICENSE.mkd
0 → 100644
View file @
13777da5
Copyright © 2011, Paul Vorbach. All rights reserved.
Copyright © 2009, Jeff Mott. All rights reserved.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
*
Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
*
Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
*
Neither the name Crypto-JS nor the names of its contributors may be used to
endorse or promote products derived from this software without specific prior
written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This diff is collapsed.
Click to expand it.
node_modules/_md5@2.3.0@md5/node_modules/charenc/README.js
0 → 100644
View file @
13777da5
**
enc
**
provides
crypto
character
encoding
utilities
.
This diff is collapsed.
Click to expand it.
node_modules/_md5@2.3.0@md5/node_modules/charenc/charenc.js
0 → 100644
View file @
13777da5
var
charenc
=
{
// UTF-8 encoding
utf8
:
{
// Convert a string to a byte array
stringToBytes
:
function
(
str
)
{
return
charenc
.
bin
.
stringToBytes
(
unescape
(
encodeURIComponent
(
str
)));
},
// Convert a byte array to a string
bytesToString
:
function
(
bytes
)
{
return
decodeURIComponent
(
escape
(
charenc
.
bin
.
bytesToString
(
bytes
)));
}
},
// Binary encoding
bin
:
{
// Convert a string to a byte array
stringToBytes
:
function
(
str
)
{
for
(
var
bytes
=
[],
i
=
0
;
i
<
str
.
length
;
i
++
)
bytes
.
push
(
str
.
charCodeAt
(
i
)
&
0xFF
);
return
bytes
;
},
// Convert a byte array to a string
bytesToString
:
function
(
bytes
)
{
for
(
var
str
=
[],
i
=
0
;
i
<
bytes
.
length
;
i
++
)
str
.
push
(
String
.
fromCharCode
(
bytes
[
i
]));
return
str
.
join
(
''
);
}
}
};
module
.
exports
=
charenc
;
This diff is collapsed.
Click to expand it.
node_modules/_md5@2.3.0@md5/node_modules/charenc/package.json
0 → 100644
View file @
13777da5
{
"author"
:
"Paul Vorbach <paul@vorb.de> (http://vorb.de)"
,
"name"
:
"charenc"
,
"description"
:
"character encoding utilities"
,
"tags"
:
[
"utf8"
,
"binary"
,
"byte"
,
"string"
],
"version"
:
"0.0.2"
,
"license"
:
"BSD-3-Clause"
,
"repository"
:
{
"type"
:
"git"
,
"url"
:
"git://github.com/pvorb/node-charenc.git"
},
"bugs"
:
{
"url"
:
"https://github.com/pvorb/node-charenc/issues"
},
"main"
:
"charenc.js"
,
"engines"
:
{
"node"
:
"*"
},
"__npminstall_done"
:
true
,
"_from"
:
"charenc@0.0.2"
,
"_resolved"
:
"https://registry.npmmirror.com/charenc/-/charenc-0.0.2.tgz"
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
node_modules/_md5@2.3.0@md5/node_modules/crypt/LICENSE.mkd
0 → 100644
View file @
13777da5
Copyright © 2011, Paul Vorbach. All rights reserved.
Copyright © 2009, Jeff Mott. All rights reserved.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
*
Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
*
Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
*
Neither the name Crypto-JS nor the names of its contributors may be used to
endorse or promote products derived from this software without specific prior
written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This diff is collapsed.
Click to expand it.
node_modules/_md5@2.3.0@md5/node_modules/crypt/README.mkd
0 → 100644
View file @
13777da5
**crypt**
provides utilities for encryption and hashing
This diff is collapsed.
Click to expand it.
node_modules/_md5@2.3.0@md5/node_modules/crypt/crypt.js
0 → 100644
View file @
13777da5
(
function
()
{
var
base64map
=
'
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/
'
,
crypt
=
{
// Bit-wise rotation left
rotl
:
function
(
n
,
b
)
{
return
(
n
<<
b
)
|
(
n
>>>
(
32
-
b
));
},
// Bit-wise rotation right
rotr
:
function
(
n
,
b
)
{
return
(
n
<<
(
32
-
b
))
|
(
n
>>>
b
);
},
// Swap big-endian to little-endian and vice versa
endian
:
function
(
n
)
{
// If number given, swap endian
if
(
n
.
constructor
==
Number
)
{
return
crypt
.
rotl
(
n
,
8
)
&
0x00FF00FF
|
crypt
.
rotl
(
n
,
24
)
&
0xFF00FF00
;
}
// Else, assume array and swap all items
for
(
var
i
=
0
;
i
<
n
.
length
;
i
++
)
n
[
i
]
=
crypt
.
endian
(
n
[
i
]);
return
n
;
},
// Generate an array of any length of random bytes
randomBytes
:
function
(
n
)
{
for
(
var
bytes
=
[];
n
>
0
;
n
--
)
bytes
.
push
(
Math
.
floor
(
Math
.
random
()
*
256
));
return
bytes
;
},
// Convert a byte array to big-endian 32-bit words
bytesToWords
:
function
(
bytes
)
{
for
(
var
words
=
[],
i
=
0
,
b
=
0
;
i
<
bytes
.
length
;
i
++
,
b
+=
8
)
words
[
b
>>>
5
]
|=
bytes
[
i
]
<<
(
24
-
b
%
32
);
return
words
;
},
// Convert big-endian 32-bit words to a byte array
wordsToBytes
:
function
(
words
)
{
for
(
var
bytes
=
[],
b
=
0
;
b
<
words
.
length
*
32
;
b
+=
8
)
bytes
.
push
((
words
[
b
>>>
5
]
>>>
(
24
-
b
%
32
))
&
0xFF
);
return
bytes
;
},
// Convert a byte array to a hex string
bytesToHex
:
function
(
bytes
)
{
for
(
var
hex
=
[],
i
=
0
;
i
<
bytes
.
length
;
i
++
)
{
hex
.
push
((
bytes
[
i
]
>>>
4
).
toString
(
16
));
hex
.
push
((
bytes
[
i
]
&
0xF
).
toString
(
16
));
}
return
hex
.
join
(
''
);
},
// Convert a hex string to a byte array
hexToBytes
:
function
(
hex
)
{
for
(
var
bytes
=
[],
c
=
0
;
c
<
hex
.
length
;
c
+=
2
)
bytes
.
push
(
parseInt
(
hex
.
substr
(
c
,
2
),
16
));
return
bytes
;
},
// Convert a byte array to a base-64 string
bytesToBase64
:
function
(
bytes
)
{
for
(
var
base64
=
[],
i
=
0
;
i
<
bytes
.
length
;
i
+=
3
)
{
var
triplet
=
(
bytes
[
i
]
<<
16
)
|
(
bytes
[
i
+
1
]
<<
8
)
|
bytes
[
i
+
2
];
for
(
var
j
=
0
;
j
<
4
;
j
++
)
if
(
i
*
8
+
j
*
6
<=
bytes
.
length
*
8
)
base64
.
push
(
base64map
.
charAt
((
triplet
>>>
6
*
(
3
-
j
))
&
0x3F
));
else
base64
.
push
(
'
=
'
);
}
return
base64
.
join
(
''
);
},
// Convert a base-64 string to a byte array
base64ToBytes
:
function
(
base64
)
{
// Remove non-base-64 characters
base64
=
base64
.
replace
(
/
[^
A-Z0-9+
\/]
/ig
,
''
);
for
(
var
bytes
=
[],
i
=
0
,
imod4
=
0
;
i
<
base64
.
length
;
imod4
=
++
i
%
4
)
{
if
(
imod4
==
0
)
continue
;
bytes
.
push
(((
base64map
.
indexOf
(
base64
.
charAt
(
i
-
1
))
&
(
Math
.
pow
(
2
,
-
2
*
imod4
+
8
)
-
1
))
<<
(
imod4
*
2
))
|
(
base64map
.
indexOf
(
base64
.
charAt
(
i
))
>>>
(
6
-
imod4
*
2
)));
}
return
bytes
;
}
};
module
.
exports
=
crypt
;
})();
This diff is collapsed.
Click to expand it.
node_modules/_md5@2.3.0@md5/node_modules/crypt/package.json
0 → 100644
View file @
13777da5
{
"author"
:
"Paul Vorbach <paul@vorb.de> (http://vorb.de)"
,
"name"
:
"crypt"
,
"description"
:
"utilities for encryption and hashing"
,
"tags"
:
[
"hash"
,
"security"
],
"version"
:
"0.0.2"
,
"license"
:
"BSD-3-Clause"
,
"repository"
:
{
"type"
:
"git"
,
"url"
:
"git://github.com/pvorb/node-crypt.git"
},
"bugs"
:
{
"url"
:
"https://github.com/pvorb/node-crypt/issues"
},
"main"
:
"crypt.js"
,
"engines"
:
{
"node"
:
"*"
},
"__npminstall_done"
:
true
,
"_from"
:
"crypt@0.0.2"
,
"_resolved"
:
"https://registry.npmmirror.com/crypt/-/crypt-0.0.2.tgz"
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
node_modules/_md5@2.3.0@md5/node_modules/is-buffer/LICENSE
0 → 100644
View file @
13777da5
The MIT License (MIT)
Copyright (c) Feross Aboukhadijeh
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
This diff is collapsed.
Click to expand it.
node_modules/_md5@2.3.0@md5/node_modules/is-buffer/README.md
0 → 100644
View file @
13777da5
# is-buffer [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]
[
travis-image
]:
https://img.shields.io/travis/feross/is-buffer/master.svg
[
travis-url
]:
https://travis-ci.org/feross/is-buffer
[
npm-image
]:
https://img.shields.io/npm/v/is-buffer.svg
[
npm-url
]:
https://npmjs.org/package/is-buffer
[
downloads-image
]:
https://img.shields.io/npm/dm/is-buffer.svg
[
downloads-url
]:
https://npmjs.org/package/is-buffer
[
standard-image
]:
https://img.shields.io/badge/code_style-standard-brightgreen.svg
[
standard-url
]:
https://standardjs.com
#### Determine if an object is a [`Buffer`](http://nodejs.org/api/buffer.html) (including the [browserify Buffer](https://github.com/feross/buffer))
[
![saucelabs
][
saucelabs-image
]
][saucelabs-url]
[
saucelabs-image
]:
https://saucelabs.com/browser-matrix/is-buffer.svg
[
saucelabs-url
]:
https://saucelabs.com/u/is-buffer
## Why not use `Buffer.isBuffer`?
This module lets you check if an object is a
`Buffer`
without using
`Buffer.isBuffer`
(which includes the whole
[
buffer
](
https://github.com/feross/buffer
)
module in
[
browserify
](
http://browserify.org/
)
).
It's future-proof and works in node too!
## install
```
bash
npm
install
is-buffer
```
## usage
```
js
var
isBuffer
=
require
(
'
is-buffer
'
)
isBuffer
(
new
Buffer
(
4
))
// true
isBuffer
(
undefined
)
// false
isBuffer
(
null
)
// false
isBuffer
(
''
)
// false
isBuffer
(
true
)
// false
isBuffer
(
false
)
// false
isBuffer
(
0
)
// false
isBuffer
(
1
)
// false
isBuffer
(
1.0
)
// false
isBuffer
(
'
string
'
)
// false
isBuffer
({})
// false
isBuffer
(
function
foo
()
{})
// false
```
## license
MIT. Copyright (C)
[
Feross Aboukhadijeh
](
http://feross.org
)
.
This diff is collapsed.
Click to expand it.
node_modules/_md5@2.3.0@md5/node_modules/is-buffer/index.js
0 → 100644
View file @
13777da5
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
// The _isBuffer check is for Safari 5-7 support, because it's missing
// Object.prototype.constructor. Remove this eventually
module
.
exports
=
function
(
obj
)
{
return
obj
!=
null
&&
(
isBuffer
(
obj
)
||
isSlowBuffer
(
obj
)
||
!!
obj
.
_isBuffer
)
}
function
isBuffer
(
obj
)
{
return
!!
obj
.
constructor
&&
typeof
obj
.
constructor
.
isBuffer
===
'
function
'
&&
obj
.
constructor
.
isBuffer
(
obj
)
}
// For Node v0.10 support. Remove this eventually.
function
isSlowBuffer
(
obj
)
{
return
typeof
obj
.
readFloatLE
===
'
function
'
&&
typeof
obj
.
slice
===
'
function
'
&&
isBuffer
(
obj
.
slice
(
0
,
0
))
}
This diff is collapsed.
Click to expand it.
node_modules/_md5@2.3.0@md5/node_modules/is-buffer/package.json
0 → 100644
View file @
13777da5
{
"name"
:
"is-buffer"
,
"description"
:
"Determine if an object is a Buffer"
,
"version"
:
"1.1.6"
,
"author"
:
{
"name"
:
"Feross Aboukhadijeh"
,
"email"
:
"feross@feross.org"
,
"url"
:
"http://feross.org/"
},
"bugs"
:
{
"url"
:
"https://github.com/feross/is-buffer/issues"
},
"dependencies"
:
{},
"devDependencies"
:
{
"standard"
:
"*"
,
"tape"
:
"^4.0.0"
,
"zuul"
:
"^3.0.0"
},
"keywords"
:
[
"buffer"
,
"buffers"
,
"type"
,
"core buffer"
,
"browser buffer"
,
"browserify"
,
"typed array"
,
"uint32array"
,
"int16array"
,
"int32array"
,
"float32array"
,
"float64array"
,
"browser"
,
"arraybuffer"
,
"dataview"
],
"license"
:
"MIT"
,
"main"
:
"index.js"
,
"repository"
:
{
"type"
:
"git"
,
"url"
:
"git://github.com/feross/is-buffer.git"
},
"scripts"
:
{
"test"
:
"standard && npm run test-node && npm run test-browser"
,
"test-browser"
:
"zuul -- test/*.js"
,
"test-browser-local"
:
"zuul --local -- test/*.js"
,
"test-node"
:
"tape test/*.js"
},
"testling"
:
{
"files"
:
"test/*.js"
},
"__npminstall_done"
:
true
,
"_from"
:
"is-buffer@1.1.6"
,
"_resolved"
:
"https://registry.npmmirror.com/is-buffer/-/is-buffer-1.1.6.tgz"
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
node_modules/_md5@2.3.0@md5/node_modules/is-buffer/test/basic.js
0 → 100644
View file @
13777da5
var
isBuffer
=
require
(
'
../
'
)
var
test
=
require
(
'
tape
'
)
test
(
'
is-buffer
'
,
function
(
t
)
{
t
.
equal
(
isBuffer
(
Buffer
.
alloc
(
4
)),
true
,
'
new Buffer(4)
'
)
t
.
equal
(
isBuffer
(
Buffer
.
allocUnsafeSlow
(
100
)),
true
,
'
SlowBuffer(100)
'
)
t
.
equal
(
isBuffer
(
undefined
),
false
,
'
undefined
'
)
t
.
equal
(
isBuffer
(
null
),
false
,
'
null
'
)
t
.
equal
(
isBuffer
(
''
),
false
,
'
empty string
'
)
t
.
equal
(
isBuffer
(
true
),
false
,
'
true
'
)
t
.
equal
(
isBuffer
(
false
),
false
,
'
false
'
)
t
.
equal
(
isBuffer
(
0
),
false
,
'
0
'
)
t
.
equal
(
isBuffer
(
1
),
false
,
'
1
'
)
t
.
equal
(
isBuffer
(
1.0
),
false
,
'
1.0
'
)
t
.
equal
(
isBuffer
(
'
string
'
),
false
,
'
string
'
)
t
.
equal
(
isBuffer
({}),
false
,
'
{}
'
)
t
.
equal
(
isBuffer
([]),
false
,
'
[]
'
)
t
.
equal
(
isBuffer
(
function
foo
()
{}),
false
,
'
function foo () {}
'
)
t
.
equal
(
isBuffer
({
isBuffer
:
null
}),
false
,
'
{ isBuffer: null }
'
)
t
.
equal
(
isBuffer
({
isBuffer
:
function
()
{
throw
new
Error
()
}
}),
false
,
'
{ isBuffer: function () { throw new Error() } }
'
)
t
.
end
()
})
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
5
6
…
8
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment