用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. 批处理技术内幕:Unicode
  2. OpenWrt SSH远程端口转发
  3. OpenWrt路由器WIFI开启13信道
  4. 远程桌面连接用户名密码错误的解决方法
  5. VBSCript 之 GenerateSDDL 函数

留下回复