Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 08:30

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Laien]Help pls

Discussion on [Laien]Help pls within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
.BritainAndy's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,385
Received Thanks: 1,006
[Laien]Help pls

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:

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 ($file1$crypt_id1)
_FileWriteToLine ($file2$crypt_pw1)

$id2 FileReadLine ($file1)
$pw2 FileReadLine ($file2)

$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.... ^^"300300)
Sleep (6000)
Exit 
Ich verstehe eigtl. alles bis auf das hier:

PHP Code:
$crypt_id _StringEncrypt (1$id"MaZze")
$crypt_pw _StringEncrypt (1$pw"MaZze")

FileWrite ($file"")
_FileWriteToLine ($file1$crypt_id1)
_FileWriteToLine ($file2$crypt_pw1
Am Anfang steht ja:

PHP Code:
$crypt_id _StringEncrypt (1$id"MaZze")
$crypt_pw _StringEncrypt (1$pw"MaZze"
Das heißt doch, das der die ID und das Pw Verschlüsseln soll mit dem Befehl
PHP Code:
_StringEncrypt 
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
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
Dort wird zur ENtschlüsselung der Befehl
PHP Code:
_StringEncrypt 
benutzt. Aber das war doch eben noch der Befehl zum Verschlüsseln

Verste ich das Falsch ?^^
Bitte um Help


Ps: was heißt @CRLF ?
.BritainAndy is offline  
Thanks
1 User
Old 03/23/2010, 06:58   #2
 
.BritainAndy's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,385
Received Thanks: 1,006
push
.BritainAndy is offline  
Thanks
1 User
Old 03/23/2010, 14:25   #3
 
.BritainAndy's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,385
Received Thanks: 1,006
#Close plz, habs herrausgefunden. 1 steht für vershclüsseln und 0 für entschlüsseln (=
.BritainAndy is offline  
Thanks
1 User
Reply




All times are GMT +1. The time now is 08:31.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.