My Encryption/Decryption Algorithm

The fear of every surveillance society: citizens protecting their own privacy with strong cryptography

My Encryption/Decryption Algorithm

Post by barneystinson19 on Sat Mar 09, 2013 12:31 pm
([msg=74427]see My Encryption/Decryption Algorithm[/msg])

Hi HTS,
I made an encryption/decryption algorithm. The sweet pot in this algorithm is you get different output everytime with the same plain text. The challenge is finding any weak spot/errors etc. Please don't hold back your comments! Thanks :D
Download link: http://s3.dosya.tc/server/RiumaQ/EncryptDecrypt.rar.html
Image
"Ömür dediğin üç gündür, dün geldi geçti yarın meçhuldür…O halde ömür dediğin bir gündür,o da bugündür…."
User avatar
barneystinson19
Experienced User
Experienced User
 
Posts: 50
Joined: Fri Nov 02, 2012 3:49 pm
Blog: View Blog (0)


Re: My Encryption/Decryption Algorithm

Post by KthProg on Sat Mar 09, 2013 3:35 pm
([msg=74429]see Re: My Encryption/Decryption Algorithm[/msg])

Could you post the source code for us?
It's hard to judge how well it works without knowing how it works.
First thing I noticed is that the two numbers chosen as the encryption of a character are always within a small range
User avatar
KthProg
Poster
Poster
 
Posts: 219
Joined: Wed Jan 23, 2013 7:06 pm
Blog: View Blog (0)


Re: My Encryption/Decryption Algorithm

Post by LoGiCaL__ on Sun Mar 10, 2013 1:06 pm
([msg=74443]see Re: My Encryption/Decryption Algorithm[/msg])

Since the plain text is different every time it's encrypted, just curious is the algorithm using the time or randomly generated number?
User avatar
LoGiCaL__
Addict
Addict
 
Posts: 1063
Joined: Sun May 30, 2010 12:33 pm
Blog: View Blog (0)


Re: My Encryption/Decryption Algorithm

Post by WallShadow on Sun Mar 10, 2013 2:04 pm
([msg=74446]see Re: My Encryption/Decryption Algorithm[/msg])

I think that a lot of people don't exactly understand the point of encryption. Encryption is designed so that only select individuals are allowed to view the content. This, requires a key. If it does not have a key, it is only obfuscation, making it harder for everyone to read, not impossible.
User avatar
WallShadow
Contributor
Contributor
 
Posts: 614
Joined: Tue Mar 06, 2012 9:37 pm
Blog: View Blog (0)


Re: My Encryption/Decryption Algorithm

Post by shdwcat on Sun Mar 10, 2013 4:55 pm
([msg=74452]see Re: My Encryption/Decryption Algorithm[/msg])

Also do you have the up and running so that you are able to send an encrypted message to another computer or is it set up more for encrypting a hard drive, thumb drive, ect...? Not sure what you are asking here.
shdwcat
New User
New User
 
Posts: 27
Joined: Sun Nov 11, 2012 6:48 pm
Location: FL
Blog: View Blog (0)


Re: My Encryption/Decryption Algorithm

Post by barneystinson19 on Mon Mar 11, 2013 1:12 pm
([msg=74461]see Re: My Encryption/Decryption Algorithm[/msg])

<?php
switch($comments){
case 1:
$answer = "Sorry I can't post the source code :(";
break;
case 2:
$answer = "Its the second one :)";
break;
case 3:
$answer = "Thanks for information :) I've made a new one that uses keyword I hope you'll check that out :)";
break;
case 4:
$answer = "It just encrypts and decrypts a text I think of using it in somewhere sometime :)";
break;
}
echo $answer;
?>

:D
"Ömür dediğin üç gündür, dün geldi geçti yarın meçhuldür…O halde ömür dediğin bir gündür,o da bugündür…."
User avatar
barneystinson19
Experienced User
Experienced User
 
Posts: 50
Joined: Fri Nov 02, 2012 3:49 pm
Blog: View Blog (0)


Re: My Encryption/Decryption Algorithm

Post by WessB on Tue Apr 02, 2013 12:11 pm
([msg=74859]see Re: My Encryption/Decryption Algorithm[/msg])

Your algorithm will first create a random int between 0 and 1000. This value XOR total length of input, and this is placed as the frist number of the resulting string.

Then, it will take the first character from the input, takes the ascii-value of this character, XOR the total length of input-string, XOR 72, and resulting value XOR the random value.

To decode, simply XOR the first number with the number of numbers -1 to get the random value, and use that to reverse the encryption.
WessB
New User
New User
 
Posts: 1
Joined: Tue Apr 02, 2013 12:04 pm
Blog: View Blog (0)


Re: My Encryption/Decryption Algorithm

Post by barneystinson19 on Thu Apr 04, 2013 10:36 am
([msg=74900]see Re: My Encryption/Decryption Algorithm[/msg])

WessB wrote:Your algorithm will first create a random int between 0 and 1000. This value XOR total length of input, and this is placed as the frist number of the resulting string.

Then, it will take the first character from the input, takes the ascii-value of this character, XOR the total length of input-string, XOR 72, and resulting value XOR the random value.

To decode, simply XOR the first number with the number of numbers -1 to get the random value, and use that to reverse the encryption.


And thats the result of using .Net Reflector :roll:

Nevermind, algorithm already changed :mrgreen:
"Ömür dediğin üç gündür, dün geldi geçti yarın meçhuldür…O halde ömür dediğin bir gündür,o da bugündür…."
User avatar
barneystinson19
Experienced User
Experienced User
 
Posts: 50
Joined: Fri Nov 02, 2012 3:49 pm
Blog: View Blog (0)



Return to Crypto

Who is online

Users browsing this forum: No registered users and 0 guests