supported by the Xaui interface of the Gigabit Ethernet is 10 times times that of Gigabit Ethernet.Specifications published in the IEEE 802.3ae standard it includes 10gbase-r (including the 10GBASE-SR, 10GBASE-LR, and 10gbase-er three specifications), 10gbase-w (including 10GBASE-SW, 10GBASE-LW and 10gbase-ew three specifications), 10gbase-x (including 10GBASE-LX4 specifications only) three physical interface standards.In the architecture of the 10gb
Function addunsigned (byVal LX, ByVal LY)
Dim lX4
Dim lY4
Dim lX8
Dim lY8
Dim Lresult
LX8 = LX and amp;h80000000
LY8 = LY and amp;h80000000
LX4 = LX and amp;h40000000
LY4 = LY and amp;h40000000
LRESULT = (LX and AMP;H3FFFFFFF) + (LY and AMP;H3FFFFFFF)
If lX4 and LY4 Then
LRESULT = Lresult xor amp;h80000000 xor LX8 xor lY8
ElseIf
Main content: Front desk JS encryption + background Java decryptionFirst, the front desk JS encryption: The information will be sent to the background in JS MD5 encryption, get the key, and then send the information and key together to the background.1. Introduce the MD5 JS Framework, the Md5.js file, as follows:/*** MD5 for JavaScript. (32bit)* @ interface:md5 ("Input String")* @ return:key for Input String**/var MD5 = function (string) {function Rotateleft (LValue, ishiftbits) {Return (lvalue}
Private Const BITS_TO_A_BYTE = 8
Private Const BYTES_TO_A_WORD = 4
Private Const BITS_TO_A_WORD = 32
Private M_lonbits (30)
Private M_l2power (30)
Private Function LShift (Lvalue, Ishiftbits)
If ishiftbits = 0 Then
LShift = Lvalue
Exit function
ElseIf ishiftbits = Then
If Lvalue and 1 then
LShift = h80000000
Else
LShift = 0
End If
Exit function
ElseIf ishiftbits Err.Raise 6
End If
if (Lvalue and M_l2power (31-ishiftbits)) Then
LShift = ((Lvalue and M_lonbits ()-(ishiftbits + 1)) * M_l2power (ish
Err.Raise 6
End If
Rshift = (lValue and h7ffffffe) \ M_l2power (ishiftbits)
If (LValue and h80000000) Then
Rshift = (rshift Or (h40000000 \ m_l2power (iShiftBits-1))
End If
End Function
Private Function rotateleft (LValue, Ishiftbits)
Rotateleft = LShift (LValue, ishiftbits) Or Rshift (LValue, (32-ishiftbits))
End Function
Private Function addunsigned (LX, LY)
Dim lX4
Dim lY4
Dim lX8
Dim lY8
Dim Lresult
LX8 = LX and h80000000
LY8 = LY and h80000
h7ffffffe) M_l2power (ishiftbits)
If (LValue and h80000000) Then
Rshift = (Rshift Or (h40000000 m_l2power (iShiftBits-1))
End If
End Function
Private Function rotateleft (LValue, Ishiftbits)
Rotateleft = LShift (LValue, ishiftbits) Or Rshift (LValue, (32-ishiftbits))
End Function
Private Function addunsigned (LX, LY)
Dim lX4
Dim lY4
Dim lX8
Dim lY8
Dim Lresult
LX8 = LX and h80000000
LY8 = LY and h80000000
LX4
Rshift = (lValue and h7ffffffe) \ M_l2power (ishiftbits)
If (LValue and h80000000) Then
Rshift = (rshift Or (h40000000 \ m_l2power (iShiftBits-1))
End If
End Function
Private Function rotateleft (LValue, Ishiftbits)
Rotateleft = LShift (LValue, ishiftbits) Or Rshift (LValue, (32-ishiftbits))
End Function
Private Function addunsigned (LX, LY)
Dim lX4
Dim lY4
Dim lX8
Dim lY8
Dim Lresult
LX8 = LX and h80000000
LY8 = LY and h80000000
, Ishiftbits)
If ishiftbits = 0 Then
Rshift = Lvalue
Exit Function
ElseIf ishiftbits = Then
If Lvalue and h80000000 Then
Rshift = 1
Else
Rshift = 0
End If
Exit Function
ElseIf ishiftbits Err.Raise 6
End If
Rshift = (lvalue and h7ffffffe) \ M_l2power (ishiftbits)
If (Lvalue and h80000000) Then
Rshift = (rshift Or (h40000000 \ m_l2power (iShiftBits-1))
End If
End Function
Private Function rotateleft (lvalue, Ishiftbits)
Rotateleft = LShift (Lvalue, ishiftbits) Or Rshift (Lvalue, (32-ishiftbits)
This article mainly introduces the MD5 algorithm implemented by JavaScript, and analyzes the specific steps and related skills for implementing the MD5 algorithm based on JavaScript in the form of a complete example, for more information about how to implement the MD5 algorithm in JavaScript, see the example in this article. We will share this with you for your reference. The details are as follows:
/**** MD5 (Message-Digest Algorithm)* http://www.webtoolkit.info/***/var MD5 = function (string
\ m_l2power (iShiftBits-1))
End If
End Function
Private Function rotateleft (LValue, Ishiftbits)
Rotateleft = LShift (LValue, ishiftbits) Or Rshift (LValue, (32-ishiftbits))
End Function
Private Function addunsigned (LX, LY)
Dim lX4
Dim lY4
Dim lX8
Dim lY8
Dim Lresult
LX8 = LX and h80000000
LY8 = LY and h80000000
LX4 = LX and h40000000
LY4 = LY and h40000000
LRESULT = (LX and AMP;H3
= (LValue and h7ffffffe) M_l2power (ishiftbits)
If (LValue and h80000000) Then
Rshift = (Rshift Or (h40000000 m_l2power (iShiftBits-1))
End If
End Function
Private Function rotateleft (LValue, Ishiftbits)
Rotateleft = LShift (LValue, ishiftbits) Or Rshift (LValue, (32-ishiftbits))
End Function
Private Function addunsigned (LX, LY)
Dim lX4
Dim lY4
Dim lX8
Dim lY8
Dim Lresult
LX8 = LX and h80000000
LY8 = LY and h80000000
(LValue, Ishiftbits)
If ishiftbits = 0 Then
Rshift = LValue
Exit Function
ElseIf ishiftbits = Then
If LValue and h80000000 Then
Rshift = 1
Else
Rshift = 0
End If
Exit Function
ElseIf ishiftbits Err.Raise 6
End If
Rshift = (lValue and h7ffffffe) \ M_l2power (ishiftbits)
If (LValue and h80000000) Then
Rshift = (rshift Or (h40000000 \ m_l2power (iShiftBits-1))
End If
End Function
Private Function rotateleft (LValue, Ishiftbits)
Rotateleft = LShift (LValue, ishiftbits) Or Rshift (LValue, (32-is
= ((LValue and M_lonbits (31-ishiftbits)) * M_l2power (ishiftbits))
End If
End Function
Private Function rshift (LValue, Ishiftbits)
If ishiftbits = 0 Then
Rshift = LValue
Exit Function
ElseIf ishiftbits = Then
If LValue and h80000000 Then
Rshift = 1
Else
Rshift = 0
End If
Exit Function
ElseIf ishiftbits Err.Raise 6
End If
Rshift = (LValue and h7ffffffe) M_l2power (ishiftbits)
If (LValue and h80000000) Then
Rshift = (Rshift Or (h40000000 m_l2power (iShiftBits-1))
End If
End Function
Private
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.