Jump to content

oceanwind

Active Members
  • Posts

    20
  • Joined

  • Last visited

Everything posted by oceanwind

  1. 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
  2. second round: \xf1\xcbMQ\x8a\x0e\xda\x9d\\\xbb\xfd\xb7\x85\x09\x83\xf1\xe6\x03\xee\xaeHN\xde\xa7nM\xd8\xd8\xde\xb5Un \xf1\xcbMQ\x8a\x0e\xda\x9d\\\xbb\xfd\xb7\x85\t\x83\xf1\xe6\x03\xee\xaeHN\xde\xa7nM\xd8\xd8\xde\xb5Un retested, difference " \t" vs "\x09"
  3. 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
  4. 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.
  5. Can you help to modify your code to match python digest() version not the hexdigest() version?
  6. Hi,Friends: I Can't find some items in my AutoIt3Wrapper Directives.au3,such as " #AutoIt3Wrapper_Run_Au3Stripper", Can the item like this be manually added into the directives? or the Directives.au3 file can be updated from somewhere? tks in advance.
  7. It's nice to use the 0 as the Extended Styles ,but I can't located in the Extended Style list.
  8. 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?
  9. Hi All: How to set the input border color? tks in advance
  10. 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
  11. The same , class instance now is 19 ,it may change to 8 next time.
  12. Hello All: A control ID will change every time after the main software restart,but it's position is fixed, So can I get the control ID as a variable according to it's position? tks
×
×
  • Create New...