Is this humanly decipherable?

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
bmoyles0117
Forum Newbie
Posts: 22
Joined: Sun Nov 02, 2008 1:46 am

Is this humanly decipherable?

Post by bmoyles0117 »

I put together a pretty nifty little encrypt method but I'm curious to know at what point do you determine whether or not an encrypted number is humanly crackable.

Original - 3319267269813160
Encrypted - mbfdZc4hJd1jmg4a
Decrypted - 3319267269813160
==============================

Original - 6149909455351961
Encrypted - afJb#j1jmbBjBg#b
Decrypted - 6149909455351961
==============================

Original - 8787489471557420
Encrypted - ffBh#e#jfh4hScfa
Decrypted - 8787489471557420
==============================

Original - 5457086363369865
Encrypted - fgJeJafgBjJhmgBf
Decrypted - 5457086363369865
==============================

Original - 1978215253392766
Encrypted - 4jJjZcSf4cJiBgSg
Decrypted - 1978215253392766
==============================
User avatar
Syntac
Forum Contributor
Posts: 327
Joined: Sun Sep 14, 2008 7:59 pm

Re: Is this humanly decipherable?

Post by Syntac »

I think we can safely say it's very difficult to decrypt them.

Out of curiosity, what's this for?
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Is this humanly decipherable?

Post by VladSun »

It has 1:1 encrypted/decrypted string length, so it looks like a simple permutation/substitution encoding which is definitely not considered secure.
If it's so, a "simple" linguistic based attack will break it ;)

http://en.wikipedia.org/wiki/Frequency_analysis :P
There are 10 types of people in this world, those who understand binary and those who don't
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: Is this humanly decipherable?

Post by alex.barylski »

Honestly unless your a cyrptoanalyst with a solid/deep understanding of the mathematics...I wouldn't suggest using your encryption for anything other than entertainment.

Basic encryption is simple...bit shifting, etc...but it's not very secure nor is it difficult for a specialist to figure out the algorithm (relatively speaking -- compared to industry strength algo's) and write a script to crack your code.
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Re: Is this humanly decipherable?

Post by Mordred »

Those not using search are bound to repeat topics ;)
viewtopic.php?t=87166

Edit: My guess is that it's a polyalphabetic substitution - notice how some characters only appear on some places. With long enough ciphertexts it is trivially breakable.
Post Reply