亚洲欧美第一页_禁久久精品乱码_粉嫩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
            End If

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩美女一区二区三区四区| 成人自拍视频在线观看| 日本精品一级二级| 国产精品视频免费看| 懂色av一区二区三区蜜臀| 久久久久久久综合色一本| 国产精品白丝jk黑袜喷水| 久久久精品免费免费| 国产福利一区二区| 最近中文字幕一区二区三区| av色综合久久天堂av综合| 亚洲免费观看在线视频| 欧美色精品在线视频| 婷婷中文字幕一区三区| 欧美mv日韩mv| 国产精品99久久不卡二区| 国产精品美女www爽爽爽| 99精品在线观看视频| 亚洲成a人片综合在线| 91精品国产手机| 激情综合亚洲精品| 国产精品不卡一区二区三区| 欧美亚洲日本一区| 久久成人麻豆午夜电影| 国产精品久久一卡二卡| 色狠狠av一区二区三区| 亚洲第一综合色| 精品动漫一区二区三区在线观看| 丰满亚洲少妇av| 一区二区三区精品在线| 欧美岛国在线观看| 91女厕偷拍女厕偷拍高清| 日本va欧美va精品| 国产精品免费aⅴ片在线观看| 色88888久久久久久影院野外| 久久成人精品无人区| 亚洲欧美日韩成人高清在线一区| 国产精品国产自产拍高清av | 欧美精品一区二区三区久久久| 成人福利在线看| 日韩不卡手机在线v区| 久久女同精品一区二区| 欧美性xxxxx极品少妇| 国产精品888| 日韩精品高清不卡| 亚洲欧美日韩中文播放| 欧美精品一区二区三区一线天视频 | 欧美日韩视频在线一区二区 | 国产精品一线二线三线| 一区二区三区四区在线| 国产亚洲精品aa午夜观看| 欧美日韩在线三区| 成人h精品动漫一区二区三区| 奇米影视7777精品一区二区| 亚洲精品亚洲人成人网在线播放| 日韩美女视频在线| 欧美色图在线观看| 成人黄色在线网站| 国产精品99久| 另类小说色综合网站| 亚洲成人午夜电影| 综合久久久久综合| 国产色综合久久| 欧美sm极限捆绑bd| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 盗摄精品av一区二区三区| 青青草原综合久久大伊人精品| 亚洲视频图片小说| 国产精品欧美久久久久一区二区| 日韩欧美一级二级三级久久久| 欧美日韩一区二区欧美激情| 91香蕉视频在线| 99re在线精品| 成人激情午夜影院| 成人综合激情网| 成人激情图片网| 国产福利一区二区三区视频在线 | 香蕉加勒比综合久久| 亚洲男人的天堂一区二区 | 亚洲美女偷拍久久| 椎名由奈av一区二区三区| 中文字幕一区二区三区色视频| 欧美激情在线免费观看| 久久精子c满五个校花| 久久免费的精品国产v∧| 精品日韩av一区二区| 欧美一级在线视频| 日韩女优制服丝袜电影| 精品久久久影院| 精品国产一区二区三区忘忧草 | 精品不卡在线视频| 精品国产伦一区二区三区观看体验| 精品久久久久一区| 国产欧美一区二区三区在线看蜜臀 | 精品视频一区二区不卡| 欧美精品一卡两卡| 91精品国产一区二区人妖| 精品久久久久久久一区二区蜜臀| 日韩欧美国产综合一区| 久久久蜜桃精品| 中文字幕欧美国产| 国产精品国产自产拍在线| 亚洲精品视频观看| 首页综合国产亚洲丝袜| 激情图区综合网| 国产91精品露脸国语对白| 99r国产精品| 3d动漫精品啪啪| 2021国产精品久久精品| 国产精品美女久久福利网站| 亚洲一区二区视频在线| 美女视频黄 久久| 国产成人一区在线| 欧美在线不卡一区| 精品美女被调教视频大全网站| 日本一区二区久久| 亚洲.国产.中文慕字在线| 久久精品国内一区二区三区| 成人做爰69片免费看网站| 在线视频你懂得一区二区三区| 91精品国产入口| 国产欧美精品一区二区色综合 | 亚洲国产一区视频| 久久 天天综合| 91麻豆视频网站| 日韩视频一区二区三区在线播放| 久久久亚洲高清| 夜夜嗨av一区二区三区中文字幕| 久久国产日韩欧美精品| 成人污污视频在线观看| 这里是久久伊人| 中文字幕一区二区三区乱码在线| 日本午夜一本久久久综合| 99久久er热在这里只有精品15 | 精品对白一区国产伦| 夜夜嗨av一区二区三区中文字幕 | 久久久久国产精品厨房| 亚洲一区影音先锋| 国产999精品久久| 欧美一级国产精品| 亚洲女同一区二区| 国产99久久久久| 日韩欧美精品三级| 一区二区三区高清| 成人国产在线观看| 精品国产乱码久久久久久图片| 夜夜精品视频一区二区 | 欧美电影免费观看完整版| 亚洲精品视频在线观看网站| 国产成人精品一区二区三区网站观看 | 91丨porny丨蝌蚪视频| 久久一夜天堂av一区二区三区| 亚洲丶国产丶欧美一区二区三区| 懂色一区二区三区免费观看| 日韩精品在线一区| 亚洲va欧美va人人爽| 91视频在线看| 亚洲国产高清不卡| 国产一区欧美日韩| 日韩一级大片在线观看| 午夜精品视频在线观看| 欧美做爰猛烈大尺度电影无法无天| 国产精品超碰97尤物18| 成人教育av在线| 国产日产欧美一区二区视频| 久久激情五月婷婷| 欧美一区二区私人影院日本| 亚洲国产一区二区三区青草影视 | 一区二区三区在线高清| 91网上在线视频| 亚洲欧美精品午睡沙发| 99在线视频精品| 亚洲欧洲国产专区| 不卡的电视剧免费网站有什么| 国产精品久久一级| 91麻豆精东视频| 亚洲精品老司机| 欧美日韩一区二区三区四区| 五月婷婷欧美视频| 69堂成人精品免费视频| 久久无码av三级| 欧美一区欧美二区| 日韩—二三区免费观看av| 日韩一区二区中文字幕| 国产精品亚洲专一区二区三区| 天堂蜜桃一区二区三区| 欧美三级中文字幕| 日韩精品一卡二卡三卡四卡无卡| 日本国产一区二区| 亚洲国产cao| 久久综合九色欧美综合狠狠| 欧美优质美女网站| 日韩三级精品电影久久久| 亚洲蜜桃精久久久久久久| 成人av免费网站| 国产精品美女久久久久aⅴ| 国产麻豆精品theporn| 2020国产精品久久精品美国| 人人超碰91尤物精品国产| 欧美精品免费视频|