1994-04-20 - simple_crypt comparison

Header Data

From: “Buckley Collum” <buckley@wavefront.wti.com>
To: cypherpunks@toad.com
Message Hash: fa38cae2c317f992d5a411009eddf4a58a2fb5d4edffd453bccbbf716f27ac2c
Message ID: <9404201745.ZM3835@atlanta>
Reply To: N/A
UTC Datetime: 1994-04-20 21:50:25 UTC
Raw Date: Wed, 20 Apr 94 14:50:25 PDT

Raw message

From: "Buckley Collum" <buckley@wavefront.wti.com>
Date: Wed, 20 Apr 94 14:50:25 PDT
To: cypherpunks@toad.com
Subject: simple_crypt comparison
Message-ID: <9404201745.ZM3835@atlanta>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="Boundary..3916.1071713424.multipart/mixed"

--Boundary..3916.1071713424.multipart/mixed
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

For those who can determine crackability:

Recently a message was posted which included source for a chaos-based crypt
routine.  How does this compare to the one-rotor crypt routine which is found
in /bin?  I.e., Which one would be easier to crack, and why?

I am still learning, so I apologize for the waste of bandwidth if it is
intuitively obvious to you.

Both source files are attached.  Thanks.


Buckley Collum



--Boundary..3916.1071713424.multipart/mixed
Content-Type: application/octet-stream; name="bin00001.bin"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bin00001.bin"
Content-Description: "binary file"

LyogY3J5cHQuYyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKi8KLyog
Q0hBT1MgZW5jcnlwdGlvbi9kZWNyeXB0aW9uIHJvdXRpbmUgKi8KLyotLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tKi8KLyogV3JpdHRl
biBieSBDaHJpcyBSYWlsZSAxOTg5ICAgICAgICAgKi8KLyogMmZtbnNpbGx5
QGt1aHViLmNjLnVrYW5zLmVkdSAgICAgICAgKi8KLyogMmZtbnNpbGx5QHVr
YW52YXguYml0bmV0ICAgICAgICAgICAgKi8KLyotLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tKi8KLyogSW1wbGVtZW50YXRpb246ICAg
ICAgICAgICAgICAgICAgICAgKi8KLyogICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgKi8KLyogJ2luJyAgICBGaWxlIHRvIGJlIGVuL2Rl
Y3J5cHRlZCAgICAgKi8KLyogJ291dCcgICBSZXN1bHRpbmcgZW4vZGVjcnlw
dGVkIGZpbGUgKi8KIAojaW5jbHVkZSAic3RkaW8uaCIKIAptYWluKCkKewog
ICAgICAgIEZJTEUgKmZwdHJpbjsKICAgICAgICBGSUxFICpmcHRyb3V0Owog
ICAgICAgIGludCBpLCBjaDsKICAgICAgICBkb3VibGUgciA9IDMuNTY5OTQ1
NzE4Njk7CiAgICAgICAgZG91YmxlIGosIHg9LjMxMzc5NDEyOyAgICAgICAg
ICAgLyogPC0tIGNoYW5nZSBudW1iZXJzIGFmdGVyIDFzdCAnMycgKi8KICAg
ICAgICBmcHRyaW4gPSBmb3BlbigiaW4iLCJyYiIpOyAgICAgICAvKiB0byBh
bHRlciBlbmNyeXB0aW9uIHNjaGVtZSAoa2V5KSAqLyAgICAgICAgZnB0cm91
dCA9IGZvcGVuKCJvdXQiLCJ3YiIpOwogICAgICAgIHdoaWxlICggKGNoPWdl
dGMoZnB0cmluKSkgIT0gRU9GKQogICAgICAgICAgICAgICAgewogICAgICAg
ICAgICAgICAgeD0ocip4KSooMS14KTsKICAgICAgICAgICAgICAgIGo9eCox
MDA7CiAgICAgICAgICAgICAgICBpPShpbnQpajsKICAgICAgICAgICAgICAg
IGNoPWleY2g7CiAgICAgICAgICAgICAgICBwdXRjKGNoLGZwdHJvdXQpOwog
ICAgICAgICAgICAgICAgfQogICAgICAgIGZjbG9zZShmcHRyaW4pOwogICAg
ICAgIGZjbG9zZShmcHRyb3V0KTsKfQoK

--Boundary..3916.1071713424.multipart/mixed
Content-Type: application/octet-stream; name="bin00000.bin"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bin00000.bin"
Content-Description: "binary file"

c3Rh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