md5sum.vbs

来自「MD5加密算法的COM控件以及编译的源码」· VBS 代码 · 共 48 行

VBS
48
字号

REM
REM  MD5 COM component
REM
REM  Copyright (C) 2005  YeeToo Group
REM
REM  This program is free software; you can redistribute it and/or modify
REM  it under the terms of the GNU General Public License as published by
REM  the Free Software Foundation; either version 2 of the License, or
REM  (at your option) any later version.
REM
REM  This program is distributed in the hope that it will be useful,
REM  but WITHOUT ANY WARRANTY; without even the implied warranty of
REM  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
REM  GNU General Public License for more details.
REM
REM  You should have received a copy of the GNU General Public License
REM  along with this program; if not, write to the Free Software
REM  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
REM

option explicit

dim objMD5
dim bRegister
bRegister=true

on error resume next
set objMD5=createobject("md5.md5sum")
if err.number<>0 then
  msgbox "object ""md5.md5sum"" create failed," & vbCrLf & _
         "maybe the MD5 COM component is not register."
  bRegister=false
end if

if bRegister then

  on error goto 0

  dim str
  str="http://www.yeetoo.net/"
  msgbox "string:" & str & vbCrLf & "md5sum:" & objMD5.MD5Sum(str), _
         64, _
         "MD5 component testing script"
  set objMD5=nothing

end if

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?