Hallo Leute, ichb in ein Laien in Sachen Autoit.
Hab mir die Grundlagen 1-3 Durchgelesen (ok, bis jetzt nur 1) und dort steht folgendes:
Ich verstehe eigtl. alles bis auf das hier:
Am Anfang steht ja:
Das heißt doch, das der die ID und das Pw Verschlüsseln soll mit dem Befehl
Soweit so gut. Aber am ende, wenn er das passwort auf der Daten.txt herrauslesen soll und ausgeben soll, entschlüsselt er das ja wieder
Dort wird zur ENtschlüsselung der Befehl
benutzt. Aber das war doch eben noch der Befehl zum Verschlüsseln :confused::confused:
Verste ich das Falsch ?^^
Bitte um Help
Ps: was heißt @CRLF ? :D
Hab mir die Grundlagen 1-3 Durchgelesen (ok, bis jetzt nur 1) und dort steht folgendes:
PHP Code:
#include <File.au3>
#include <String.au3>
$file = "daten.txt"
$id = InputBox ("Daten", "ID")
$pw = InputBox ("Daten", "Passwort", "", "*")
$crypt_id = _StringEncrypt (1, $id, "MaZze")
$crypt_pw = _StringEncrypt (1, $pw, "MaZze")
FileWrite ($file, "")
_FileWriteToLine ($file, 1, $crypt_id, 1)
_FileWriteToLine ($file, 2, $crypt_pw, 1)
$id2 = FileReadLine ($file, 1)
$pw2 = FileReadLine ($file, 2)
$crypt_id2 = _StringEncrypt (0, $id2, "MaZze")
$crypt_pw2 = _StringEncrypt (0, $pw2, "MaZze")
MsgBox (0, "ID+Passwort", "Deine ID ist "&$crypt_id2&@CRLF&"Dein PW ist "&$crypt_pw2)
Tooltip ("Und nun schau dir mal den Inhalt der datei Daten.txt an.... ^^", 300, 300)
Sleep (6000)
Exit
PHP Code:
$crypt_id = _StringEncrypt (1, $id, "MaZze")
$crypt_pw = _StringEncrypt (1, $pw, "MaZze")
FileWrite ($file, "")
_FileWriteToLine ($file, 1, $crypt_id, 1)
_FileWriteToLine ($file, 2, $crypt_pw, 1)
PHP Code:
$crypt_id = _StringEncrypt (1, $id, "MaZze")
$crypt_pw = _StringEncrypt (1, $pw, "MaZze")
PHP Code:
_StringEncrypt
PHP Code:
$crypt_id2 = _StringEncrypt (0, $id2, "MaZze")
$crypt_pw2 = _StringEncrypt (0, $pw2, "MaZze")
MsgBox (0, "ID+Passwort", "Deine ID ist "&$crypt_id2&@CRLF&"Dein PW ist "&$crypt_pw2)
PHP Code:
_StringEncrypt
Verste ich das Falsch ?^^
Bitte um Help
Ps: was heißt @CRLF ? :D