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

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

?? cencdec.cls

?? 這個程序是VB編寫的加密解密程序,希望對大家有所幫助.
?? 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
            End If

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
懂色av一区二区三区蜜臀 | 亚洲欧美综合色| 日本久久一区二区| 狠狠狠色丁香婷婷综合久久五月| 中文字幕在线观看不卡视频| 日韩一区二区三区免费观看| 色综合天天综合网天天狠天天| 久久99精品国产麻豆不卡| 成人欧美一区二区三区视频网页| 精品三级av在线| 欧美日韩国产美| 日本精品裸体写真集在线观看 | 国产专区综合网| 五月天视频一区| 亚洲人成亚洲人成在线观看图片| 精品国产自在久精品国产| 欧美视频在线不卡| 日本精品一区二区三区高清| 成人美女视频在线观看| 国产精品亚洲成人| 国产在线日韩欧美| 久久综合综合久久综合| 日韩高清不卡在线| 亚洲va韩国va欧美va| 亚洲激情男女视频| 亚洲丝袜制服诱惑| 亚洲色图在线播放| 国产精品国产三级国产普通话蜜臀| 久久蜜臀中文字幕| 亚洲精品一区二区三区精华液| 日韩欧美在线一区二区三区| 4438x亚洲最大成人网| 欧美精品在线视频| 在线播放中文一区| 欧美剧情片在线观看| 欧美日韩精品一区二区在线播放 | 丁香激情综合国产| 国产风韵犹存在线视精品| 国内欧美视频一区二区| 韩国精品久久久| 紧缚捆绑精品一区二区| 美女www一区二区| 麻豆免费看一区二区三区| 日本在线不卡一区| 麻豆精品一二三| 激情欧美日韩一区二区| 国产一区二区按摩在线观看| 国产一区二区三区在线观看精品 | 亚洲综合久久久久| 亚洲成av人片www| 美国十次综合导航| 国产精品一区二区三区99| 国产成人精品综合在线观看| av电影在线观看不卡| 日本二三区不卡| 色婷婷久久久综合中文字幕| 色综合久久中文综合久久97| 欧美色视频一区| 日韩欧美亚洲国产另类| 欧美激情中文字幕一区二区| 最新国产の精品合集bt伙计| 亚洲国产日韩综合久久精品| 久久精品国产一区二区三区免费看| 精品午夜久久福利影院| 成人在线综合网站| 欧洲视频一区二区| 日韩限制级电影在线观看| 中文字幕欧美日韩一区| 一级做a爱片久久| 蜜乳av一区二区| 成人性视频网站| 欧美日韩一区不卡| www亚洲一区| 亚洲欧美二区三区| 蜜臀久久99精品久久久画质超高清| 国产乱妇无码大片在线观看| 色婷婷精品大视频在线蜜桃视频| 91.xcao| 欧美经典一区二区| 日韩精品久久久久久| 福利一区二区在线| 欧美日韩国产高清一区二区三区| 欧美精品一区男女天堂| 一二三四区精品视频| 国内精品写真在线观看| 色综合久久久久综合体| 欧美不卡一区二区| 亚洲欧美一区二区三区久本道91| 免费三级欧美电影| 色婷婷综合久久久久中文一区二区 | 日韩成人免费电影| 18成人在线视频| 日本亚洲天堂网| a4yy欧美一区二区三区| 日韩欧美精品在线| 亚洲综合小说图片| 成人免费视频网站在线观看| 欧美日韩高清一区| 亚洲天堂福利av| 国模一区二区三区白浆| 欧美日韩一级视频| 国产精品久久久久久户外露出| 日韩不卡在线观看日韩不卡视频| 91免费视频网| 国产精品毛片久久久久久久| 免费成人av资源网| 欧美美女网站色| 一区二区三区中文在线| 国产91精品一区二区麻豆亚洲| 欧美一区在线视频| 一区二区三区美女| 91网站视频在线观看| 久久久国产精品麻豆| 免费在线看一区| 欧美精品一卡两卡| 五月天一区二区三区| 欧美在线观看禁18| 亚洲欧美日韩国产另类专区| 国产在线精品免费| 日韩免费高清视频| 免费人成黄页网站在线一区二区| 欧美三级三级三级爽爽爽| 亚洲精品视频免费观看| www..com久久爱| 国产精品理论在线观看| 高潮精品一区videoshd| 国产欧美一区二区精品忘忧草| 激情五月婷婷综合| 久久久久久免费网| 国产一区二区三区美女| 久久亚洲捆绑美女| 国产剧情一区二区| 国产午夜精品福利| 国产成人自拍网| 国产欧美日产一区| 成人性生交大片免费看视频在线 | 国产精品初高中害羞小美女文| 国产成人亚洲精品狼色在线| 久久久久久久久一| 国产成人在线观看免费网站| 国产三级一区二区三区| 国产不卡视频一区| 亚洲欧美日韩一区二区| 色欧美日韩亚洲| 婷婷国产在线综合| 日韩欧美一级二级三级| 韩国午夜理伦三级不卡影院| 精品国产亚洲在线| 成人精品一区二区三区四区 | 久久www免费人成看片高清| 日韩欧美国产系列| 狠狠网亚洲精品| 国产精品毛片久久久久久久| 99国产精品久久久久久久久久 | 欧美日韩小视频| 天堂蜜桃91精品| 精品奇米国产一区二区三区| 久久国产婷婷国产香蕉| 久久久久青草大香线综合精品| 粉嫩aⅴ一区二区三区四区| 最新国产精品久久精品| 欧美视频一区在线观看| 精品一区二区三区免费视频| 中文字幕高清不卡| 欧美视频一区在线观看| 国内精品伊人久久久久av一坑| 中文字幕五月欧美| 欧美久久婷婷综合色| 国产精品一区二区果冻传媒| 一区二区视频在线| 欧美一二三四在线| 成人avav影音| 日本视频一区二区三区| 国产精品久久99| 91麻豆精品91久久久久同性| 国产成人av影院| 性久久久久久久久久久久| 国产片一区二区三区| 欧美日韩不卡一区二区| 丁香五精品蜜臀久久久久99网站| 夜夜嗨av一区二区三区网页| 精品国产1区2区3区| 91麻豆免费看| 经典三级一区二区| 亚洲丶国产丶欧美一区二区三区| 久久人人超碰精品| 欧美日韩高清一区二区三区| 大桥未久av一区二区三区中文| 日韩精品一二三区| 中文字幕日韩欧美一区二区三区| 欧美久久婷婷综合色| 成人高清免费观看| 另类的小说在线视频另类成人小视频在线 | 懂色中文一区二区在线播放| 视频一区二区三区入口| 综合激情成人伊人| 亚洲精品在线免费播放| 欧美日韩免费观看一区三区| 成人免费av网站| 国产乱淫av一区二区三区|