English
Forum

PassWord in the mode 1 and in the mode 2

 
- Page 1 -



Dietmar
Horn
Hello together,

somehow seem I time again whom woods not sheer trees To see.

The following code functions with the einfachen Veschlüsselungsmethode (mode 0) correctly, in the mode 1 comes against it only Garbage out.
PASSWORD 0,"DHO12345dho"'Klappt!
'PASSWORD 1,"DHO12345dho" 'Klappt not
Declare tmp1$,tmp2$
Var inidat$ = $PROGDIR + "Test.ini"
writeini inidat$,"SETUP","T1" = pwd$("Text123")
writeini inidat$,"SETUP","T2" = pwd$("Text321")
CLS
print pwd$(ReadIni$(inidat$,"SETUP","T1"))
print pwd$(ReadIni$(inidat$,"SETUP","T2"))
Waitinput

what should I on the code Change, circa nevertheless The sicherere Verschlüsselungsmethode in the mode 1 use to?

Greeting
Dietmar
 
XProfan X2
Multimedia für Jugendliche und junge Erwachsene - MMJ Hoyerswerda e.V.  [...] 

Windows 95 bis Windows 7
Profan² 6.6 bis XProfan X2 mit XPSE

Das große XProfan-Lehrbuch:  [...] 
09/05/11  
 



« this Posting watts as Solution marked. »


RGH
Hi,
with Verschlüsselung with 1 can (with high probability) Strings come into being, which not correctly in a INI-File write and/or from your reading let.
here helps the Funktionspaar Encode64()/Decode(64): Encode64() power from eachone beliebigen Bytefolge a String. the only from darstellbaren characters exists and Decode(64) GetControlParas (B diuesen String again into Original-Bytefolge back.
with this double Verschlüsselung works it then:
' PASSWORD 0,"DHO12345dho"'Klappt!
PASSWORD 1,"DHO12345dho"'Klappt not
Declare tmp1$,tmp2$
Var inidat$ = $PROGDIR + "Test.ini"
writeini inidat$,"SETUP","T1" = encode64(pwd$("Text123"))
writeini inidat$,"SETUP","T2" = encode64(pwd$("Text321"))
CLS
print pwd$(decode64(ReadIni$(inidat$,"SETUP","T1")))
print pwd$(decode64(ReadIni$(inidat$,"SETUP","T2")))
Waitinput

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
09/05/11  
 




Dietmar
Horn
thanks, Roland, for this thoughts-Anschubser!

Greeting
Dietmar
 
XProfan X2
Multimedia für Jugendliche und junge Erwachsene - MMJ Hoyerswerda e.V.  [...] 

Windows 95 bis Windows 7
Profan² 6.6 bis XProfan X2 mit XPSE

Das große XProfan-Lehrbuch:  [...] 
09/05/11  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.616 Views

Untitledvor 0 min.
RAW09/14/18
Walter03/08/16
Matthias Arlt02/18/16
Sebastian Sprenger03/19/13
More...

Themeninformationen

this Topic has 2 subscriber:

Dietmar Horn (2x)
RGH (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie