#include<GUIConstants.au3>
#include <ACN_HASH.au3>
$winman = GUICreate("编码转换", 450, 400, -1, -1)
$md51 = GUICtrlCreateLabel("明文密码:", 10, 25, 60, 25)
$md52 = GUICtrlCreateInput("", 70, 20, 125, 25)
$md53 = GUICtrlCreateLabel("转换后", 200, 25, 50, 25)
$md54 = GUICtrlCreateInput("", 240, 20, 125, 25)
$button1 = GUICtrlCreateButton("转成MD5", 370, 20, 80, 25)
GUISetState()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $button1
$md55 = GUICtrlRead($md52)
$md56 = StringReplace(_MD5($md55), '0x', '')
GUICtrlSetData($md54, $md56)
EndSwitch
WEnd
|