用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. OpenTextFile与Unicode
  2. Turbo C 2.01官方下载
  3. VBS练习题——计算1到100的和
  4. bb_register_plugin_activation_hook函数——bbPress的BUG
  5. 批处理技术内幕:重定向与管道

留下回复