Hi,
ich bin nun von 3.3.8.1 auf 3.3.10.2 umgestiegen.
In dieser Version gibt es _StringEncrypt zum entschlüsseln von Strings nicht mehr.
Stattdessen soll man _Crypt_DecryptData verwenden.
Nun leider bekomme ich beim entschlüsseln nicht den originalen String zurück.
Was mache ich falsch?
Spoiler anzeigen
#Region ;************ Includes ************
#Include <Crypt.au3>
#EndRegion ;************ Includes ************
Global $pass_schluessel = "hgjztfztfgfjhfjfg656gh4fhg4f456ghf4g54hf6ggjtfhtjt5t45tgghghölgkjlejesölgjgkljetetejkltöt4xxx"
$sVerschluesselt = "631F1A2A9040059E397835B13DF74C5AE4FB58E68205"
_Crypt_Startup() ; Startet die Crypt-Bibliothek um die Performance zu optimieren.
Local $hKey = _Crypt_DeriveKey($pass_schluessel, $CALG_RC4) ; Deklariert eine Passwort-Zeichenkette und einen Algorithmus um einen kryptographischen Schlüssel zu erzeugen.
$sEntschluesselt = _Crypt_DecryptData($sVerschluesselt, $hKey, $CALG_USERKEY)
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]ConsoleWrite($sVerschluesselt & @CRLF)
ConsoleWrite($sEntschluesselt & @CRLF) ;<<< "r4hZ7qF49uZ" das sollte rauskommen
ConsoleWrite($pass_schluessel & @CRLF)
_Crypt_DestroyKey($hKey) ; Zerstört den kryptographischen Schlüssel.
_Crypt_Shutdown() ; Beendet die Crypt-Bibliothek.