亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? cencdec.cls

?? 因為本系統在寫成電子稿件的時候
?? CLS
?? 第 1 頁 / 共 2 頁
字號:
VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "cEncDec"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Option Explicit
DefLng A-Z 'we're 32 bit!

#Const Debugging = True 'Set to False for final compilation

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'for variable length encryption

Private Type TreeNode   'the tree nodes
    Weight              As Long
    Parent              As Long
    Child1              As Long
    Child2              As Long
End Type

Private Nodes()         As TreeNode     'the tree
Attribute Nodes.VB_VarDescription = "The Tree"
Private Codes()         As String       'the variable lenght codes
Attribute Codes.VB_VarDescription = "The variable lenght Codes"
Private Masks(0 To 7)   As Long
Attribute Masks.VB_VarDescription = "Bit masks used during decrypting"
Private Hash            As Long
Attribute Hash.VB_VarDescription = "Password and text digest"
Private IxSlack         As Long         'index pointing to code to be used as slack
Attribute IxSlack.VB_VarDescription = "Index pointing to a suitable caditate to fill slack bits"
Private MinLen          As Long         'tree properties
Attribute MinLen.VB_VarDescription = "local property"
Private MaxLen          As Long
Attribute MaxLen.VB_VarDescription = "local property"
Private Speed           As Long         'conversion speed
Attribute Speed.VB_VarDescription = "Conversion speed"

Private Declare Function GetTickCount Lib "kernel32" () As Long
Private StartTick       As Long
Attribute StartTick.VB_VarDescription = "From GetTickCount"

Private Const MaxLong   As Long = 2 ^ 31 - 1
Attribute MaxLong.VB_VarDescription = "2 ^ 31 - 1"
Private Const ChunkSize As Long = 255
Attribute ChunkSize.VB_VarDescription = "Chunksize is used during encryption and decryption"

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'for MD5 message digest

Private Const IniPart1  As Double = 1732584193#
Private Const IniPart2  As Double = 4023233417#
Private Const IniPart3  As Double = 2562383102#
Private Const IniPart4  As Double = 271733878#

'Pass 1
Private Const S101      As Long = 7
Private Const S102      As Long = 12
Private Const S103      As Long = 17
Private Const S104      As Long = 22
Private Const A101      As Long = -680876936
Private Const A102      As Long = -389564586
Private Const A103      As Long = 606105819
Private Const A104      As Long = -1044525330
Private Const A105      As Long = -176418897
Private Const A106      As Long = 1200080426
Private Const A107      As Long = -1473231341
Private Const A108      As Long = -45705983
Private Const A109      As Long = 1770035416
Private Const A110      As Long = -1958414417
Private Const A111      As Long = -42063
Private Const A112      As Long = -1990404162
Private Const A113      As Long = 1804603682
Private Const A114      As Long = -40341101
Private Const A115      As Long = -1502002290
Private Const A116      As Long = 1236535329

'Pass 2
Private Const S201      As Long = 5
Private Const S202      As Long = 9
Private Const S203      As Long = 14
Private Const S204      As Long = 20
Private Const A201      As Long = -165796510
Private Const A202      As Long = -1069501632
Private Const A203      As Long = 643717713
Private Const A204      As Long = -373897302
Private Const A205      As Long = -701558691
Private Const A206      As Long = 38016083
Private Const A207      As Long = -660478335
Private Const A208      As Long = -405537848
Private Const A209      As Long = 568446438
Private Const A210      As Long = -1019803690
Private Const A211      As Long = -187363961
Private Const A212      As Long = 1163531501
Private Const A213      As Long = -1444681467
Private Const A214      As Long = -51403784
Private Const A215      As Long = 1735328473
Private Const A216      As Long = -1926607734

'Pass 3
Private Const S301      As Long = 4
Private Const S302      As Long = 11
Private Const S303      As Long = 16
Private Const S304      As Long = 23
Private Const A301      As Long = -378558
Private Const A302      As Long = -2022574463
Private Const A303      As Long = 1839030562
Private Const A304      As Long = -35309556
Private Const A305      As Long = -1530992060
Private Const A306      As Long = 1272893353
Private Const A307      As Long = -155497632
Private Const A308      As Long = -1094730640
Private Const A309      As Long = 681279174
Private Const A310      As Long = -358537222
Private Const A311      As Long = -722521979
Private Const A312      As Long = 76029189
Private Const A313      As Long = -640364487
Private Const A314      As Long = -421815835
Private Const A315      As Long = 530742520
Private Const A316      As Long = -995338651

'Pass 4
Private Const S401      As Long = 6
Private Const S402      As Long = 10
Private Const S403      As Long = 15
Private Const S404      As Long = 21
Private Const A401      As Long = -198630844
Private Const A402      As Long = 1126891415
Private Const A403      As Long = -1416354905
Private Const A404      As Long = -57434055
Private Const A405      As Long = 1700485571
Private Const A406      As Long = -1894986606
Private Const A407      As Long = -1051523
Private Const A408      As Long = -2054922799
Private Const A409      As Long = 1873313359
Private Const A410      As Long = -30611744
Private Const A411      As Long = -1560198380
Private Const A412      As Long = 1309151649
Private Const A413      As Long = -145523070
Private Const A414      As Long = -1120210379
Private Const A415      As Long = 718787259
Private Const A416      As Long = -343485551

Private Const Top16Bits As Long = &HFFFF0000
Private Const Bot16Bits As Long = &HFFFF&
Private Const Bot8Bits  As Long = &HFF&
Private Const Bit16Only As Long = &H10000

Private Const BlockSize As Long = 64

'variables, types, and enums
Private Type Segs
    P(1 To 4)           As Long
End Type
Private Digest          As Segs
Public Enum SignatureLength
    [Short] = 4
    [Medium] = 16
    [Long] = 32
End Enum

'local properties
Private myMsgDigest4    As String
Private myMsgDigest16   As String
Private myMsgDigest32   As String

Private Function BuildLeaves(Key As String) As Long

  'this builds all nodes for a tree, the weight assigned to the leaves however depends on
  'the key rather than on the character frequency (which would be used in a Huffman Tree)

  Dim IxLeaf, IxKey, TotalWeight, Rand

#If Debugging Then
    fTest.tvwTree.Nodes.Clear
    fTest.lstCodes.Clear
#End If
    ReDim Nodes(0 To 510)

    If Len(Key) Then
        For IxLeaf = LBound(Nodes) To UBound(Nodes)
            If IxKey = Len(Key) Then
                IxKey = 0
            End If
            IxKey = IxKey + 1 'cycles through key
            With Nodes(IxLeaf)
                .Parent = 0 'no parents or children yet
                .Child1 = 0
                .Child2 = 0
                If IxLeaf < 256 Then 'this is a leaf for sure

                    'this rather complicated algorithm assigns a weight to a leaf, this weight should
                    'be widely spread to make the tree unbalanced, and chaotic to react to input
                    'changes with 'unpredictable' output changes

                    Rand = Int(Rnd(-Asc(Mid$(Key, IxKey, 1)) - IxLeaf Xor IxKey) * 2674317)
                    Do
                        .Weight = (Rand + IxLeaf) Mod (Rnd ^ 11 * 473 * Asc(Mid$(Key, Int(Rnd * Len(Key) + 1), 1)) + 1)
                    Loop Until .Weight

                    'we need the total weight of all leaves to recognize the root later on
                    TotalWeight = TotalWeight + .Weight

                  Else 'this will be a parent node'NOT IXLEAF...
                    .Weight = 0 'will later have the combined weight of her children
                End If
            End With 'NODES(IXLEAF)
        Next IxLeaf
        BuildLeaves = TotalWeight 'return total weight of all leaves
      Else 'LEN(KEY) = FALSE
        Err.Raise 1001, "cEncDec", "The key is missing."
    End If

    'create initial hash
    Hash = (TotalWeight Xor TotalWeight \ 256 Xor TotalWeight \ 256 \ 256 Xor TotalWeight \ 256 \ 256 \ 256) And Bot8Bits
    'init randomizer for hash
    Rnd -TotalWeight * Hash

End Function

Private Function BuildTree(ExpectedRootWeight As Long) As Long

  'this creates a tree in Huffman fashion, however the node-weights do not depend on
  'character frequency but on the key (see BuildLeaves)

  Dim ChildCount, IxNode, IxParent, IxFirstChild, IxSecondChild, LowestWeight

    IxParent = 255 'leaves are in 0 .. 255, parents, grandparents (and finally root) will be in 256 .. 512
    Do
        IxParent = IxParent + 1
        With Nodes(IxParent)
            For ChildCount = 1 To 2 'find two children for the next parent
                IxFirstChild = IxSecondChild '2nd index is free again on 2nd time Pass
                LowestWeight = MaxLong
                For IxNode = 0 To IxParent - 1 'find parentless living Nodes with the lowest Weight (leaf or intermediate)
                    If Nodes(IxNode).Parent = 0 And Nodes(IxNode).Weight > 0 And Nodes(IxNode).Weight < LowestWeight Then
                        LowestWeight = Nodes(IxNode).Weight
                        IxSecondChild = IxNode 'remember that child's index
                    End If
                Next IxNode
                If LowestWeight < MaxLong Then 'found a suitable child - adopt it
                    Nodes(IxSecondChild).Parent = IxParent 'tell child who her parent is
                    .Weight = .Weight + LowestWeight 'add child weight to parent weight
                End If
            Next ChildCount
            .Child1 = IxFirstChild 'tell parent who her children are
            .Child2 = IxSecondChild
        End With 'NODES(IXPARENT)
    Loop Until Nodes(IxParent).Weight = ExpectedRootWeight 'bail out if the root was just created
    BuildTree = IxParent 'return root index
#If Debugging Then
    ShowNodeWithChildren -1, IxParent, vbNullString, vbNullString
#End If

End Function

Public Property Get BytesPerSecond() As Long
Attribute BytesPerSecond.VB_Description = "Public Property"

    BytesPerSecond = Speed

End Property

Private Sub Class_Initialize()

  Dim IxMask

    For IxMask = LBound(Masks) To UBound(Masks)
        Masks(IxMask) = 2 ^ IxMask 'Masks are initialized only once; speed up decryption
    Next IxMask

End Sub

Private Sub Class_Terminate()

  'erase sensitive info form memory

    Erase Nodes, Codes, Digest.P

End Sub

Private Sub CreateCodes(Root As Long)

  'this scans the tree from leaves to root and creates a table of variable length codes

  Dim IxLeaf, IxChild, IxParent, Code As String

    ReDim Codes(0 To 255)
    MinLen = MaxLong
    MaxLen = -1
    For IxLeaf = LBound(Codes) To UBound(Codes) 'all leaves
        Code = vbNullString
        If Nodes(IxLeaf).Parent Then 'not an orphan (don't think there are any in this tree but just to be sure)
            IxChild = IxLeaf
            Do 'climb up to root
                IxParent = Nodes(IxChild).Parent
                Code = IIf(IxChild = Nodes(IxParent).Child1, "0", "1") & Code
                IxChild = IxParent
            Loop Until IxParent = Root
            Codes(IxLeaf) = Code
            If Len(Code) < MinLen Then
                MinLen = Len(Code)
            End If
            If Len(Code) > MaxLen Then
                MaxLen = Len(Code)
            End If
            If Len(Code) > 7 Then 'if the code is longer than 7 bits then
                IxSlack = IxLeaf  'that's a good candidate for the slack bits
            End If
        End If
    Next IxLeaf

End Sub

Private Function CreateTree(Key As String) As Long

    CreateTree = BuildTree(BuildLeaves(Key))

End Function

Public Function Decrypt(Data As String, Key As String) As String
Attribute Decrypt.VB_Description = "This reads the input bit stream and climbs down the tree until a leaf is found; that leaf's index (after digest) is the Ascii value of clear character to return"

  'this reads the input bit stream and climbs down the tree until a leaf is found;
  'that leaf's index (after hash) is the Ascii value of clear character to return

  Dim Root, IxParent, IxChild, Pointer, IxMask, Coding, Ascii, Chunk As String

    StartTick = GetTickCount - 1 ' (-1) to prevent zero division
    Root = CreateTree(Key)

    'decrypt data
    IxParent = Root 'start at root
    For Pointer = 1 To Len(Data)
        Coding = Asc(Mid$(Data, Pointer, 1))
        For IxMask = UBound(Masks) To LBound(Masks) Step -1 'climb down the tree
            If Coding And Masks(IxMask) Then
                IxChild = Nodes(IxParent).Child2
              Else 'NOT CODING...
                IxChild = Nodes(IxParent).Child1
            End If
            If Nodes(IxChild).Child1 = 0 And Nodes(IxChild).Child2 = 0 Then 'that's a leaf
                Ascii = IxChild Xor Hash
                Chunk = Chunk & Chr$(Ascii) 'append clear char
                Hash = (Ascii Xor Hash) \ 2 + Rnd * 128 'update hash
                IxParent = Root 'go back to root
                If Len(Chunk) = ChunkSize Then
                    Decrypt = Decrypt & Chunk 'append chunk
                    Chunk = vbNullString
                End If
              Else 'not a leaf'NOT NODES(IXCHILD).CHILD1...
                IxParent = IxChild 'climb down further

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕精品在线不卡| 欧美一级精品在线| 成人综合激情网| 国产在线精品视频| 国产精品99久久久久久宅男| 麻豆精品视频在线| 国产一区二区三区观看| 激情六月婷婷久久| 国产东北露脸精品视频| 国产盗摄女厕一区二区三区| 成人手机在线视频| 色婷婷综合久久久中文字幕| 91久久精品一区二区三| 精品视频在线看| 日韩一区二区在线看| 欧美videossexotv100| 久久亚洲影视婷婷| 亚洲色图在线看| 五月天久久比比资源色| 精品亚洲国产成人av制服丝袜| 国产自产v一区二区三区c| 成人午夜视频免费看| 在线精品视频一区二区三四| 欧美精品黑人性xxxx| 337p粉嫩大胆噜噜噜噜噜91av| 久久精品夜色噜噜亚洲aⅴ| 中文字幕人成不卡一区| 日韩成人午夜电影| 国产一区二区女| 欧美性videosxxxxx| 精品国产91久久久久久久妲己| 国产精品九色蝌蚪自拍| 日韩二区三区在线观看| 国产不卡在线播放| 欧美日韩成人综合在线一区二区| 久久影视一区二区| 亚洲一卡二卡三卡四卡| 国产在线日韩欧美| 色婷婷亚洲精品| 久久久99精品免费观看| 亚洲国产一二三| 99久久国产综合色|国产精品| 欧美电影在线免费观看| 中文字幕在线观看一区二区| 蜜桃91丨九色丨蝌蚪91桃色| 99精品国产99久久久久久白柏| 欧美一区二区播放| 亚洲精品免费一二三区| 国产精品小仙女| 69堂成人精品免费视频| 亚洲另类中文字| 成人午夜伦理影院| 久久久久青草大香线综合精品| 亚洲一区二区三区三| www.爱久久.com| 欧美高清在线一区| 黄色资源网久久资源365| 欧美日韩国产一二三| 亚洲欧洲av在线| 国产91精品在线观看| 精品卡一卡二卡三卡四在线| 日本中文字幕一区二区有限公司| 91在线视频免费91| 国产精品第13页| 国产精品一级片在线观看| 精品久久久久久久久久久久久久久| 亚洲自拍偷拍av| 欧美综合一区二区| 亚洲猫色日本管| 色综合中文综合网| 中文一区在线播放| 精品在线观看免费| 欧美电视剧免费全集观看| 日韩二区在线观看| 日韩欧美国产三级| 国模冰冰炮一区二区| 欧美不卡123| 国内精品自线一区二区三区视频| 欧美mv日韩mv| 国产精选一区二区三区| 国产日韩av一区二区| 成人综合在线观看| 国产精品妹子av| 色婷婷久久综合| 亚洲综合免费观看高清完整版在线| 在线精品视频一区二区三四| 亚洲小少妇裸体bbw| 8x福利精品第一导航| 精品在线一区二区三区| 国产视频亚洲色图| 99久久99久久精品国产片果冻| 亚洲精品你懂的| 欧美久久久久久蜜桃| 久久精品国产亚洲5555| 国产日本欧洲亚洲| 91免费版在线| 喷水一区二区三区| 日本一区二区成人在线| 一本久道中文字幕精品亚洲嫩| 天天影视色香欲综合网老头| 日韩欧美国产1| 91亚洲国产成人精品一区二区三| 一区二区三区在线播| 欧美一区二区三区视频| 国产成人精品一区二区三区网站观看| 亚洲日本免费电影| 日韩欧美一级在线播放| av动漫一区二区| 奇米色一区二区三区四区| 国产视频一区在线播放| 欧洲精品视频在线观看| 国模冰冰炮一区二区| 亚洲精品少妇30p| 欧美成人国产一区二区| 91国产福利在线| 韩国av一区二区三区在线观看| 亚洲免费观看高清在线观看| 欧美精品一区二| 欧美性淫爽ww久久久久无| 国产麻豆9l精品三级站| 亚洲777理论| 亚洲婷婷综合久久一本伊一区| 精品粉嫩aⅴ一区二区三区四区| 91在线码无精品| 国产伦精品一区二区三区在线观看| 一区二区三区四区在线免费观看| 久久免费美女视频| 日韩女优av电影在线观看| 欧美午夜电影网| av电影在线观看不卡| 国产酒店精品激情| 麻豆精品精品国产自在97香蕉| 亚洲美女偷拍久久| 日韩伦理av电影| 中文字幕不卡的av| 国产视频视频一区| 久久欧美一区二区| 日韩三级视频在线观看| 欧美人体做爰大胆视频| 色欧美片视频在线观看| 不卡av电影在线播放| 国产精品自拍av| 国产精品69久久久久水密桃| 日韩国产欧美一区二区三区| 亚洲综合一区二区精品导航| 亚洲视频一区二区在线| 国产精品久久久久久亚洲伦| 欧美激情综合网| 国产日韩成人精品| 中文在线免费一区三区高中清不卡| 久久久精品天堂| 国产视频亚洲色图| 中文一区一区三区高中清不卡| 精品国产免费人成电影在线观看四季| 欧美一区二区在线不卡| 欧美丰满一区二区免费视频| 91精品在线一区二区| 欧美大白屁股肥臀xxxxxx| 日韩情涩欧美日韩视频| 精品国产sm最大网站免费看| 久久精品这里都是精品| 久久午夜色播影院免费高清| 久久久高清一区二区三区| 国产欧美日本一区视频| 国产精品久久久久久久久图文区| 亚洲天堂成人在线观看| 亚洲18色成人| 精品一区二区三区在线播放视频| 国产麻豆视频一区| 色哟哟国产精品| 欧美一级黄色片| 久久这里只精品最新地址| 国产精品超碰97尤物18| 一级日本不卡的影视| 麻豆久久久久久| 成人永久看片免费视频天堂| 91亚洲精品一区二区乱码| 欧美日本高清视频在线观看| 久久久蜜臀国产一区二区| 亚洲视频资源在线| 日韩影院免费视频| 懂色av中文字幕一区二区三区| 色综合天天综合色综合av| 欧美一区二区三区在线看| 国产亚洲女人久久久久毛片| 亚洲伦理在线免费看| 另类小说欧美激情| 在线亚洲精品福利网址导航| 日韩一级黄色片| 亚洲精品ww久久久久久p站| 久草在线在线精品观看| 91麻豆成人久久精品二区三区| 日韩欧美国产一区二区在线播放| 国产精品久久久爽爽爽麻豆色哟哟 | 久久亚洲捆绑美女| 亚洲一区在线视频| 国产99精品国产| 欧美二区在线观看| 一区二区三区精密机械公司| 国内精品伊人久久久久av影院 |