
oceanwind
Active Members-
Posts
20 -
Joined
-
Last visited
Everything posted by oceanwind
-
SHA256 - results: au3srcriptforum \xf1\xcbMQ\x8a\x0e\xda\x9d\\\xbb\xfd\xb7\x85\x09\x83\xf1\xe6\x03\xee\xaeHN\xde\xa7nM\xd8\xd8\xde\xb5Un python \xf1\xcbMQ\x8a\x0e\xda\x9d\\\xbb\xfd\xb7\x85\t\x83\xf1\xe6\x03\xee\xaeHN\xde\xa7nM\xd8\xd8\xde\xb5Un difference show: au3srcriptforum \xf1\xcbMQ\x8a\x0e\xda\x9d\\\xbb\xfd\xb7\x85\x09\x83\xf1\xe6\x03\xee\xaeHN\xde\xa7nM\xd8\xd8\xde\xb5Un python \xf1\xcbMQ\x8a\x0e\xda\x9d\\\xbb\xfd\xb7\x85\t- {difference here}- \x83\xf1\xe6\x03\xee\xaeHN\xde\xa7nM\xd8\xd8\xde\xb5Un
-
Thank you so much for quick response. There are a little differences between the two results : Varibles: Local $sSecret = "TC3Gu5t9xGARNpq86cd98joQYCN3*******" Local $sMessage = "2019-02-25" Results: au3srcriptforum \xf1\xcbMQ\x8a\x0e\xda\x9d\\xbb\xfd\xb7\x85\x09\x83\xf1\xe6\x03\xee\xaeHN\xde\xa7nM\xd8\xd8\xde\xb5Un python \xf1\xcbMQ\x8a\x0e\xda\x9d\\\xbb\xfd\xb7\x85\t\x83\xf1\xe6\x03\xee\xaeHN\xde\xa7nM\xd8\xd8\xde\xb5Un
-
Original link:Hash HMAC - AutoIt Example Scripts - AutoIt Forums (autoitscript.com) original codes: Local $sSecret = "SecretKey" Local $sMessage = "AutoIt Rocks!!!" ConsoleWrite("HMAC-SHA256: " & @TAB & @TAB & _HashHMAC("SHA512", $sMessage, $sSecret) & @CRLF) ConsoleWrite("HMAC-SHA256: " & @TAB & @TAB & _HashHMAC("SHA256", $sMessage, $sSecret) & @CRLF) ConsoleWrite("HMAC-SHA1: " & @TAB & @TAB & _HashHMAC("SHA1", $sMessage, $sSecret) & @CRLF) ConsoleWrite("HMAC-SHA384: " & @TAB & @TAB & _HashHMAC("SHA384", $sMessage, $sSecret) & @CRLF) ConsoleWrite("HMAC-MD5: " & @TAB & @TAB & _HashHMAC("MD5", $sMessage, $sSecret) & @CRLF) ConsoleWrite("HMAC-RIPEMD160: " & @TAB & _HashHMAC("RIPEMD160", $sMessage, $sSecret) & @CRLF) Func _HashHMAC($sAlgorithm, $bData, $bKey, $bRaw_Output = False) Local $oHashHMACErrorHandler = ObjEvent("AutoIt.Error", "_HashHMACErrorHandler") Local $oHMAC = ObjCreate("System.Security.Cryptography.HMAC" & $sAlgorithm) If @error Then SetError(1, 0, "") $oHMAC.key = Binary($bKey) Local $bHash = $oHMAC.ComputeHash_2(Binary($bData)) Return SetError(0, 0, $bRaw_Output ? $bHash : StringLower(StringMid($bHash, 3))) EndFunc ;==>_HashHMAC Func _HashHMACErrorHandler($oError) ;Dummy Error Handler EndFunc ;==>_HashHMACErrorHandler The result matches python hexdigest(), How to modify above codes to match python digest()? tks in advance.
-
How to set the input border color?
oceanwind replied to oceanwind's topic in AutoIt General Help and Support
Greate idea,thanks. -
How to set the input border color?
oceanwind replied to oceanwind's topic in AutoIt General Help and Support
tks -
How to set the input border color?
oceanwind replied to oceanwind's topic in AutoIt General Help and Support
It's nice to use the 0 as the Extended Styles ,but I can't located in the Extended Style list. -
How to set the input border color?
oceanwind replied to oceanwind's topic in AutoIt General Help and Support
hi M23, Tks for your quick answer.Your idea is nice ,but in dark background,the input borders is visable and look not good. Maybe this is involved in somthing like SDk or DLLcall? -
Hi All: How to set the input border color? tks in advance
-
How to use the .net func _Help::ShowHelpIndex?
oceanwind replied to oceanwind's topic in AutoItX Help and Support
Tks! -
Want to call .net func _Help::ShowHelpIndex.Here is the link in msdn:https://msdn.microsoft.com/en-us//library/system.windows.forms.help.showhelpindex. I wrote the script below: $dll = DllOpen("C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Windows.Forms.dll") $result = DllCall($dll, "none", "ShowHelpIndex","HWND", 0,"wstr","D:\Program Files\AutoIt3\AutoIt3CHS.chm") _check_result() DllClose($dll) Func _check_result() If @error Then ConsoleWrite(">--|error:=" & @error & "|--<") ConsoleWrite(@LF) Else ConsoleWrite(">--|$result:=" & $result[0] & "|--<") ConsoleWrite(@LF) EndIf EndFunc Can someone give some advices? tks in advance