English
Source / code snippets

INVXOREXP-Crypto (demonstration)

 

p.specht

INVXOREXP-Crypto is one the einfacheren XOR-Verschlüsselungsverfahren. a little bit a la Enigma, functions the whole only then sure, if one with eachone Klarnachricht too a brandneuen, never wiederverwendeten Verschlüsselungscode already übermittelt has - and of course always! The Verschlüsselungstext becomes functional verzerrt, circa its statistische Dekodierung something To erschweren. The Rest is a verzerrte, invertierte XOR-thing.
Windowtitle "INVXOREXP-Crypto":cls
var Klartext$="Zu verschlüsselnder set unbestimmter length!"
var Key$="GgG6!eD3bA<<<"
var z$="":var y$=""
var Ls&=len(Key$)
Print "\n      Klartext = ";Klartext$

whileloop len(Klartext$)

    z$=z$+chr $( (xor(255-ord(mid$(Klartext$,&Loop,1)), exp(ord(mid$(Key$,&Loop mod ls&,1))) )))

endwhile

print "\n   Cryptogramm = ";z$

whileloop len(z$)

    y$=y$+chr $( (xor(255-ord(mid$(   z$    ,&Loop,1)), exp(ord(mid$(Key$,&Loop mod ls&,1))) )))

endwhile

print "\n Entschlüsselt = ";y$
waitinput
 
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
05/24/21  
 




p.specht

Why XOR-Verschlüsselung uncertain is
==============================
... if one whom Schlüsseltext wiederverwendet:

1. Keytext XOR Keytext = 0

2. Plaintext XOR 0 = Plaintext

3. Cyphertext1 = Plaintext1 XOR Keytext

4. Cyphertext2 = Plaintext2 XOR Keytext

5.= 3. XOR 4. :
Cyphertext1 XOR Cyphertext2 = Plaintext1 XOR Keytext XOR Plaintext2 XOR Keytext
Cyphertext1 XOR Cyphertext2 = Plaintext1 XOR Plaintext2 XOR (Keytext XOR Keytext)
Cyphertext1 XOR Cyphertext2 = Plaintext1 XOR Plaintext2 XOR 0, (see 1.)
Cyphertext1 XOR Cyphertext2 = Plaintext1 XOR Plaintext2, (see 2.), or.:

6. Cyphertext1 XOR Cyphertext2 = Plaintext1 XOR Plaintext2 = Decodetext;

therefore:

7. Plaintext1 = Decodetext XOR Plaintext2, woraus follows:

Can Plaintext1-words guess (Zeichenhäufigkeiten of/ one Language !) and yield itself from it sinnvolle words, then yield itself further Klartexte (Plaintext 2,3,4,...), without that one whom Key at all needed!

greeting
 
XProfan 11
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
05/26/21  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.676 Views

Untitledvor 0 min.
p.specht11/21/21
R.Schneider11/20/21
Uwe Lang11/20/21
Manfred Barei11/19/21
More...

Themeninformationen

this Topic has 1 subscriber:

p.specht (2x)


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