用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. 你可以分配多大的内存?
  2. VBS内置常量大全
  3. VeryPDF CHM to PDF Converter 2.0 注册码
  4. 文件夹拒绝访问且文件夹显示为空的解决方法
  5. OpenWrt中的Hotplug脚本

留下回复