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

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

?? frmencfiles.frm

?? 程序加密算法
?? FRM
?? 第 1 頁 / 共 2 頁
字號:
' ---------------------------------------------------------------------------
' Write the encrypted data into the encrypted output file
' ---------------------------------------------------------------------------
  Open m_strEncryptName For Binary Access Write As #hFile
  Put hFile, , arData
  Close #hFile

' ---------------------------------------------------------------------------
' Empty data array and make sure we have the correct size to refill it.
'
' BUG:  The decoded file will be one byte larger than the source.  To fix
'       this, subtract 1 from the file size to accomodate the zero based array.
'
' Fix suggested by Harbinder Gill hgill@altavista.net
' ---------------------------------------------------------------------------
  lngFileSize = FileLen(m_strEncryptName)
  Erase arData()
  ReDim arData(lngFileSize - 1)
  
' ---------------------------------------------------------------------------
' Load the byte array with the file contents from the encrypted file using
' one command then close file.
' ---------------------------------------------------------------------------
  Open m_strEncryptName For Binary Access Read As #hFile
  Get hFile, , arData
  Close #hFile

' ---------------------------------------------------------------------------
' set up parameters prior to decryption
' ---------------------------------------------------------------------------
  cCrypto.Password = arPWord()
  cCrypto.InputData = arData()

' ---------------------------------------------------------------------------
' Decrypt the data input from the encrypted file.  Convert the final data
' back to string format before writing to the output file.  If the byte array
' was PUT into the decrypted file in one command, the last character
' would be converted to a NULL.
' ---------------------------------------------------------------------------
  If cCrypto.Decrypt(g_intHashType, m_intCipher) Then
      arData = cCrypto.OutputData
      strText = cCrypto.ByteArrayToString(arData())
  Else
      GoTo CleanUp
  End If
  
' ---------------------------------------------------------------------------
' Write the decrypted data into the output file.
' ---------------------------------------------------------------------------
  Open m_strDecryptName For Binary Access Write As #hFile
  Put hFile, , strText
  Close #hFile
  
  MsgBox "Successful Finish!" & vbCrLf & _
         "Use a text editor to veiw the file formats.", _
         vbInformation Or vbOKOnly, "Encrypt Files"
  
CleanUp:
  On Error GoTo 0         ' nullify the previous "On Error"
  Set cCrypto = Nothing   ' free class from memory
  Erase arData()          ' empty the data array
  strText = String$(250, 0)
  Exit Sub
  
Process_File_Errors:
' ---------------------------------------------------------------------------
' Display error message
' ---------------------------------------------------------------------------
  MsgBox "Error: " & CStr(Err.Number) & "  " & Err.Description & vbCrLf & vbCrLf & _
         "Module:  frmEncFiles" & vbCrLf & _
         "Routine:  Process_File", vbExclamation Or vbOKOnly, "Encrypt File Error"
  
  Call CloseOpenFiles
  Resume CleanUp
  
End Sub

Private Sub cmdChoice_Click(Index As Integer)

' ***************************************************************************
' Routine:       cmdChoice_Click
'
' Description:   Based on command button selected, perform string encryption
'                of return to the main menu.
'
' ===========================================================================
'    DATE      NAME / eMAIL
'              DESCRIPTION
' -----------  --------------------------------------------------------------
' 08-JAN-2001  Kenneth Ives  kenaso@home.com
'              Wrote routine
' ***************************************************************************

' ---------------------------------------------------------------------------
' Based on the button pressed
' ---------------------------------------------------------------------------
  Select Case Index
         
         Case 0
              ' if nothing there then leave
              If Len(txtData(1).Text) = 0 Then
                  Exit Sub
              End If
              
              ' encrypt the file
              Process_File
              
         ' browse for a file
         Case 1
              txtData(1).Text = FileOpen_Dialog
              
              If Len(Trim$(txtData(1).Text)) > 0 Then
                  Prep_Textboxes
              Else
                  txtData(2).Text = ""
                  txtData(3).Text = ""
              End If
  
         ' Cancel button was pressed.  Return to main menu.
         Case 2
              frmEncFiles.Hide
              frmMainMenu.Show
  End Select
  
End Sub


Private Function FileOpen_Dialog() As String

' ***************************************************************************
' Routine:       FileOpen_Dialog
'
' Description:   Opens the File Open dialog box so the user can browse for a
'                former report file.
'
' Returns:       Path and filename
'
' ===========================================================================
'    DATE      NAME / eMAIL
'              DESCRIPTION
' -----------  --------------------------------------------------------------
' 01-NOV-2000  Kenneth Ives  kenaso@home.com
'              Routine created
' ***************************************************************************

  On Error GoTo FileOpen_Errhandler
' ---------------------------------------------------------------------------
' Define local variables
' ---------------------------------------------------------------------------
  Dim strFilename As String
  
' ---------------------------------------------------------------------------
' Initialize variables
' ---------------------------------------------------------------------------
  strFilename = ""
  CD.CancelError = True
  
' ---------------------------------------------------------------------------
' Loop until user selects a valid file or presses CANCEL
' ---------------------------------------------------------------------------
  Do
      ' Setup and display the File Open dialog box
      With CD
           ' Set flags
           .Flags = cdlOFNFileMustExist Or cdlOFNHideReadOnly Or _
                    cdlOFNLongNames Or cdlOFNPathMustExist
           
           .DialogTitle = "Browse for file to encrypt."
           ' Set filters
           .Filter = "All Files (*.*)|*.*"
           .ShowOpen                        ' Display the Open dialog box
           strFilename = .FileName          ' save the path & filename selected
      End With
  
  Loop While Len(strFilename) = 0
  
  FileOpen_Dialog = strFilename
  Exit Function
  
FileOpen_Errhandler:
' ---------------------------------------------------------------------------
' User pressed the Cancel button
' ---------------------------------------------------------------------------
  FileOpen_Dialog = ""
  Exit Function

End Function


Private Sub Form_Initialize()

' ---------------------------------------------------------------------------
' Center form on the screen.  I use this statement here because of a
' bug in the Form property "Startup Position".  In the VB IDE, under
' Tools\Options\Advanced, when you place a checkmark in the SDI
' Development Environment check box and set the form property to
' startup in the center of the screen, it works while in the IDE.
' Whenever you leave the IDE, the property reverts back to the default
' of 0-Manual.  This is a known bug with Microsoft.
' ---------------------------------------------------------------------------
  Me.Move (Screen.Width - Me.Width) \ 2, (Screen.Height - Me.Height) \ 2

End Sub

Private Sub Form_Load()

' ---------------------------------------------------------------------------
' Center the form caption
' ---------------------------------------------------------------------------
  Me.Caption = g_strVersion
  CenterCaption frmEncFiles

' ---------------------------------------------------------------------------
' Hide this form
' ---------------------------------------------------------------------------
  frmEncFiles.Hide

End Sub

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)

' ---------------------------------------------------------------------------
' Based on the the unload code the system passes,
' we determine what to do
'
' Unloadmode codes
'     0 - Close from the control-menu box
'         or Upper right "X"
'     1 - Unload method from code elsewhere
'         in the application
'     2 - Windows Session is ending
'     3 - Task Manager is clostrIng the app
'     4 - MDI Parent is clostrIng
' ---------------------------------------------------------------------------
  Select Case UnloadMode
         
         Case 0: cmdChoice_Click 2 ' Return to the main menu
         Case 1: Exit Sub
         Case 2: TerminateApplication
         Case 3: TerminateApplication
         Case 4: TerminateApplication
  End Select
  
End Sub

Private Sub Prep_Textboxes()

' ---------------------------------------------------------------------------
' Define local variables
' ---------------------------------------------------------------------------
  Dim intPosition As Integer
  
' ---------------------------------------------------------------------------
' get path and filename from first text box
' ---------------------------------------------------------------------------
  m_strFilename = Trim$(txtData(1).Text)
          
' ---------------------------------------------------------------------------
' look for last period in the path\filename
' ---------------------------------------------------------------------------
  intPosition = InStrRev(m_strFilename, ".", Len(m_strFilename))
  m_strEncryptName = Left$(m_strFilename, intPosition) & "enc"
  m_strDecryptName = Left$(m_strFilename, intPosition) & "dec"
          
' ---------------------------------------------------------------------------
' place filenames in text boxes
' ---------------------------------------------------------------------------
  txtData(2).Text = m_strEncryptName
  txtData(3).Text = m_strDecryptName

End Sub
Private Sub Clear_Variables()
  
  Erase arData()
  
  m_strFilename = ""
  m_strEncryptName = ""
  m_strDecryptName = ""
  
  With frmEncFiles
       .txtData(1).Text = ""
       .txtData(2).Text = ""
       .txtData(3).Text = ""
  End With
  
End Sub
Public Sub Reset_frmEncfiles()

' ---------------------------------------------------------------------------
' Display the form
' ---------------------------------------------------------------------------
  Clear_Variables
  Erase arPWord()
  optCipher_Click 0
    
  With frmEncFiles
       .txtData(0).Text = ""
       .lblMyLabel = MYNAME
       .Show vbModeless
  End With
  
End Sub

Private Sub optCipher_Click(Index As Integer)

' ---------------------------------------------------------------------------
' Define local variables
' ---------------------------------------------------------------------------
  Dim intIndex As Integer
  Dim intMax   As Integer
  
' ---------------------------------------------------------------------------
' Determine number of accessable cipher options
' ---------------------------------------------------------------------------
  If g_blnEnhancedProvider Then
      intMax = 4
      optCipher(3).Enabled = True
      optCipher(3).Visible = True
      optCipher(4).Enabled = True
      optCipher(4).Visible = True
  Else
      intMax = 2
      optCipher(3).Visible = False
      optCipher(3).Enabled = False
      optCipher(4).Visible = False
      optCipher(4).Enabled = False
  End If
  
' ---------------------------------------------------------------------------
' Select the visible option selected
' ---------------------------------------------------------------------------
  For intIndex = 0 To intMax
      If intIndex = Index Then
          optCipher(intIndex).Value = True
          m_intCipher = Index + 1
      Else
          optCipher(intIndex).Value = False
      End If
  Next
  
End Sub

Private Sub txtData_LostFocus(Index As Integer)
  
' ---------------------------------------------------------------------------
' See if anything is in the filename text box
' ---------------------------------------------------------------------------
  If Len(Trim$(txtData(1).Text)) > 0 Then
      Prep_Textboxes
  Else
      txtData(2).Text = ""
      txtData(3).Text = ""
  End If
  
End Sub

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩**一区毛片| 麻豆精品视频在线观看| 欧美不卡视频一区| 色综合天天在线| 国产一区二区精品在线观看| 成人免费在线视频| xf在线a精品一区二区视频网站| 在线观看免费成人| 99精品欧美一区二区三区小说| 精品一区二区三区在线播放| 亚洲愉拍自拍另类高清精品| 欧美国产精品中文字幕| 精品国产乱码久久久久久蜜臀| 欧洲一区二区三区免费视频| 成人美女在线观看| 韩国av一区二区三区四区| 日本午夜精品一区二区三区电影| 亚洲麻豆国产自偷在线| 欧美激情一区三区| 久久精品无码一区二区三区| 欧美成人国产一区二区| 欧美一区二区三区播放老司机| 欧美色倩网站大全免费| 色综合久久中文综合久久97| 成人免费黄色大片| 国产成人av在线影院| 国模大尺度一区二区三区| 日本美女一区二区三区| 亚洲www啪成人一区二区麻豆| 亚洲乱码一区二区三区在线观看| 国产精品理论片| 国产精品美日韩| 日本特黄久久久高潮| 亚洲成人第一页| 日韩影院精彩在线| 免费看日韩a级影片| 男人操女人的视频在线观看欧美| 午夜精品一区在线观看| 亚洲国产精品视频| 性做久久久久久免费观看| 亚洲五月六月丁香激情| 亚洲成人福利片| 午夜激情综合网| 丝袜亚洲另类丝袜在线| 强制捆绑调教一区二区| 久久不见久久见免费视频7| 久久不见久久见免费视频1| 国产在线观看一区二区| 国产99久久久久| 91视频你懂的| 欧美色综合网站| 欧美一区在线视频| 欧美大片一区二区三区| 久久精品一区二区三区四区| 中文字幕精品综合| 亚洲精品成人少妇| 日韩精品电影一区亚洲| 精品写真视频在线观看| www.日韩av| 欧美视频一区二| 欧美电视剧在线看免费| 欧美国产视频在线| 亚洲一区二区三区爽爽爽爽爽| 爽爽淫人综合网网站| 国内久久精品视频| 91在线国内视频| 欧美日本一道本| 久久精品一区二区三区不卡| 亚洲精品成人a在线观看| 青青草91视频| 99久久国产综合精品色伊 | 色婷婷综合久久久久中文一区二区 | 成人国产亚洲欧美成人综合网| 一本色道综合亚洲| 日韩午夜av电影| 国产精品激情偷乱一区二区∴| 亚洲成人一区在线| 国产精品91xxx| 欧美主播一区二区三区| 久久久噜噜噜久久人人看| 一区二区在线观看视频| 久久99国产精品久久99果冻传媒| caoporn国产一区二区| 91精品国产丝袜白色高跟鞋| 国产精品拍天天在线| 日韩经典一区二区| a级高清视频欧美日韩| 亚洲一区二区黄色| 国产精品99久久久久久似苏梦涵 | 国产在线不卡一卡二卡三卡四卡| 色呦呦网站一区| 久久综合九色综合欧美亚洲| 亚洲一区影音先锋| 成人性生交大合| 欧美成人a∨高清免费观看| 一区二区三区电影在线播| 国产一区二区女| 日韩一区二区三区四区| 悠悠色在线精品| 成人在线一区二区三区| 日韩欧美国产午夜精品| 亚洲一卡二卡三卡四卡| av不卡免费在线观看| 欧美成人午夜电影| 香蕉成人啪国产精品视频综合网| 成人午夜电影小说| 精品日韩欧美一区二区| 天天综合网天天综合色| 91麻豆精品秘密| 欧美韩国日本综合| 国产一二三精品| 日韩女优av电影在线观看| 视频一区二区三区入口| 欧美色图激情小说| 亚洲免费观看高清完整版在线观看| 国产福利一区二区三区视频在线| 欧美一区二区在线免费播放| 亚洲国产精品嫩草影院| 色婷婷国产精品综合在线观看| 国产精品卡一卡二| www.久久久久久久久| 国产亚洲成av人在线观看导航| 久久精品国产一区二区| 欧美一区二区成人| 日韩精品五月天| 4438x成人网最大色成网站| 视频在线观看一区二区三区| 欧美综合一区二区三区| 亚洲综合色网站| 欧美性大战xxxxx久久久| 一区二区在线观看视频在线观看| 色偷偷一区二区三区| 不卡大黄网站免费看| 国产色产综合色产在线视频| 国产在线观看免费一区| 国产丝袜在线精品| 成人免费看的视频| 综合自拍亚洲综合图不卡区| 99久久er热在这里只有精品15| 亚洲男人的天堂在线aⅴ视频| 97aⅴ精品视频一二三区| 亚洲伦理在线精品| 欧美人伦禁忌dvd放荡欲情| 天堂成人免费av电影一区| 制服丝袜日韩国产| 精品在线一区二区| 欧美国产日韩一二三区| 99国产精品久久久久| 亚洲最色的网站| 亚洲欧洲国产日韩| 在线观看亚洲专区| 日韩专区一卡二卡| 久久婷婷久久一区二区三区| 国产91色综合久久免费分享| 亚洲欧美日韩国产成人精品影院| 在线欧美日韩国产| 欧美a级理论片| 国产日韩欧美精品一区| 91免费精品国自产拍在线不卡| 亚洲成a人v欧美综合天堂| 欧美一级搡bbbb搡bbbb| 国产乱码字幕精品高清av| 综合欧美亚洲日本| 欧美精品vⅰdeose4hd| 国产精品夜夜爽| 亚洲与欧洲av电影| 精品成人私密视频| 91麻豆国产福利精品| 青娱乐精品视频| 国产精品女主播av| 在线综合视频播放| 成人免费毛片高清视频| 丝袜诱惑制服诱惑色一区在线观看 | 亚洲一区二区视频| 精品999久久久| 一本一本大道香蕉久在线精品| 美女在线视频一区| 日韩理论片网站| 日韩你懂的在线播放| 91看片淫黄大片一级在线观看| 日韩国产在线观看一区| 国产精品毛片久久久久久| 欧美精品一卡两卡| 懂色av一区二区三区免费观看| 亚洲一区二区精品视频| 国产三级三级三级精品8ⅰ区| 欧美日韩精品欧美日韩精品 | 婷婷中文字幕一区三区| 亚洲国产高清不卡| 欧美一卡2卡三卡4卡5免费| 91在线一区二区三区| 国产在线精品国自产拍免费| 亚洲一区二区三区小说| 国产精品伦一区| 欧美大片日本大片免费观看| 欧美在线free| av亚洲精华国产精华精华| 麻豆成人久久精品二区三区小说| 亚洲另类春色国产| 国产三级三级三级精品8ⅰ区|