用VBS实现PHP的SHA1函数

标签: , , ,

有了这个,VBS版的六维空间作弊工具就可以完成了。

依然是CAPICOM。

Function sha1(str, raw_output)
	Dim HashedData, Utility
	Set HashedData = CreateObject("CAPICOM.HashedData")
	Set Utility = CreateObject("CAPICOM.Utilities")
	HashedData.Algorithm = 0
	HashedData.Hash str	
	If raw_output Then
		sha1 = Utility.HexToBinary(HashedData.Value)
	Else
		sha1 = HashedData.Value
	End If
End Function
赞赏

微信赞赏支付宝赞赏

随机文章:

  1. WinDbg 6.12.2.633下载地址
  2. 用VBS实现PHP的crc32函数
  3. _open_osfhandle函数
  4. VC实现XP风格控件效果
  5. 用VBS枚举素数(质数)

留下回复