Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
noVNC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
noVNC
Commits
76053e2b
Commit
76053e2b
authored
Jun 24, 2010
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Squelch MD5.as build warnings.
parent
0e9b61d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
MD5.as
include/web-socket-js/flash-src/com/gsolo/encryption/MD5.as
+5
-5
No files found.
include/web-socket-js/flash-src/com/gsolo/encryption/MD5.as
View file @
76053e2b
...
@@ -75,7 +75,7 @@ package com.gsolo.encryption {
...
@@ -75,7 +75,7 @@ package com.gsolo.encryption {
var
bkey
:
Array
=
rstr2binl
(
key
)
;
var
bkey
:
Array
=
rstr2binl
(
key
)
;
if
(
bkey
.
length
>
16
)
bkey
=
binl_md5
(
bkey
,
key
.
length
*
8
)
;
if
(
bkey
.
length
>
16
)
bkey
=
binl_md5
(
bkey
,
key
.
length
*
8
)
;
var
ipad
:
Array
=
Array
(
16
),
opad
:
Array
=
Array
(
16
)
;
var
ipad
:
Array
=
new
Array
(
16
),
opad
:
Array
=
new
Array
(
16
)
;
for
(
var
i
:
Number
=
0
;
i
<
16
;
i
++
)
{
for
(
var
i
:
Number
=
0
;
i
<
16
;
i
++
)
{
ipad
[
i
]
=
bkey
[
i
]
^
0x36363636
;
ipad
[
i
]
=
bkey
[
i
]
^
0x36363636
;
opad
[
i
]
=
bkey
[
i
]
^
0x5C5C5C5C
;
opad
[
i
]
=
bkey
[
i
]
^
0x5C5C5C5C
;
...
@@ -128,7 +128,7 @@ package com.gsolo.encryption {
...
@@ -128,7 +128,7 @@ package com.gsolo.encryption {
var
i
:
Number
,
q
:
Number
,
x
:
Number
,
quotient
:
Array
;
var
i
:
Number
,
q
:
Number
,
x
:
Number
,
quotient
:
Array
;
/* Convert to an array of 16-bit big-endian values, forming the dividend */
/* Convert to an array of 16-bit big-endian values, forming the dividend */
var
dividend
:
Array
=
Array
(
input
.
length
/
2
)
;
var
dividend
:
Array
=
new
Array
(
input
.
length
/
2
)
;
for
(
i
=
0
;
i
<
dividend
.
length
;
i
++
)
{
for
(
i
=
0
;
i
<
dividend
.
length
;
i
++
)
{
dividend
[
i
]
=
(
input
.
charCodeAt
(
i
*
2
)
<<
8
)
|
input
.
charCodeAt
(
i
*
2
+
1
)
;
dividend
[
i
]
=
(
input
.
charCodeAt
(
i
*
2
)
<<
8
)
|
input
.
charCodeAt
(
i
*
2
+
1
)
;
}
}
...
@@ -222,10 +222,10 @@ package com.gsolo.encryption {
...
@@ -222,10 +222,10 @@ package com.gsolo.encryption {
* Characters >255 have their high-byte silently ignored.
* Characters >255 have their high-byte silently ignored.
*/
*/
public
static
function
rstr2binl
(
input
:
String
)
:
Array
{
public
static
function
rstr2binl
(
input
:
String
)
:
Array
{
var
output
:
Array
=
Array
(
input
.
length
>>
2
)
;
var
output
:
Array
=
new
Array
(
input
.
length
>>
2
)
;
for
(
var
i
:
Number
=
0
;
i
<
output
.
length
;
i
++
)
for
(
var
i
:
Number
=
0
;
i
<
output
.
length
;
i
++
)
output
[
i
]
=
0
;
output
[
i
]
=
0
;
for
(
var
i
:
Number
=
0
;
i
<
input
.
length
*
8
;
i
+=
8
)
for
(
i
=
0
;
i
<
input
.
length
*
8
;
i
+=
8
)
output
[
i
>>
5
]
|=
(
input
.
charCodeAt
(
i
/
8
)
&
0xFF
)
<<
(
i
%
32
)
;
output
[
i
>>
5
]
|=
(
input
.
charCodeAt
(
i
/
8
)
&
0xFF
)
<<
(
i
%
32
)
;
return
output
;
return
output
;
}
}
...
@@ -372,4 +372,4 @@ package com.gsolo.encryption {
...
@@ -372,4 +372,4 @@ package com.gsolo.encryption {
}
}
}
}
}
}
\ No newline at end of file
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