Proto Z Encryption System

Started by G_G, February 06, 2011, 08:52:39 am

Previous topic - Next topic

G_G

Proto Z String Crypt
Beta



Introduction

I've created my own string encryption system. I basically wanted to create this so I could have my
own secure way of accessing my mysql database between PHP and C#. I was working on my website then
I was going to make a C# program that acted as the admin page. Well at the time I didn't have the
C# method of PHP's crypt().

So I started working on my own and I say I've done a decent job at scrambling letters and numbers.
I'm putting this up to see if anyone can identify the pattern I used in my encryption system. Which
is basically how the letters from both the salt and word are placed, how the numbers are generated,
and whatnot.

I want to expand on this, create the system more complex and secure yet have the outcoming result simple.
Anyways, I've succeeded for my own personal needs for the method but I definitely would like to improve
on it.


Demos

So if you want to test and experiment with it, go right ahead. I've created the algorithm in both
PHP and C#.

PHP Web Version
C# Windows Version


Notes

Now I'm not asking anybody to completely decrypt the pattern I've generated, I just want to see how
visible the patterns are to someone else.

At the time I do not plan on releasing the source. A side note, this method works like
PHP's crypt in a sense where theres no method for reversing the encrypted string. So basically...
User: password = haithar
Generates to - fjdsl8048923fds (not real end result :P)
that code is then sent to the database to see if it matches with the recorded one. Basically the same
way RMX-OS is.

Blizzard

Lol, if I try to open the PHP file, it executes the file instead of showing the source. xD
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

G_G

February 06, 2011, 10:12:04 am #2 Last Edit: February 06, 2011, 10:17:55 am by game_guy
Wow. Sorry about the PHP version. I'm running xampp and I used a label in my code.
e.g.
a:
goto a;

But brandens host is taking it as a syntax error. I'll try and fix it.

EDIT: Did a little code modifying and removed the need for a label and goto. Should work now.

Blizzard

That, too. xD

There is a way to not execute some PHP files. I forgot it, though. You can always have that script somewhere on the side and link to a PHP script that will open the other script as a normal file and simply echo everything inside.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

G_G

Think you might have missed my edit. I fixed it and you should be able to use it now. And I'm not sure what you mean by showing the source. I released it so you could test the generation of the algorithm on a web version so you wouldn't have to download the C# version to test it. The method isn't publically released as of now.

Now if you want to view the source to my method I'll PM it to you.

Blizzard

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

ForeverZer0

I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Ryex

I don't get it. what did you do zero?
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

ForeverZer0

Those are the base encryption strings. They are used in conjunction with the given salt to scramble the strings.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Ryex

I see, you obtained them from the encryption?
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

ForeverZer0

No, I make no claims on being a hacker. I merely disassembled the executable and looked at the source code.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

G_G


ForeverZer0

It helped that I knew it was based off the .NET framework, since that is what you have been using. It may have taken a little longer not knowing that. Having that knowledge ahead of time made it easy.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Ryex

so how dose having these salts help you, you still don;t have the math. or any ability to reverse it.
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

ForeverZer0

I have the entire project with the exact methods used to encrypt it, literally all of the source code. I just de-compiled the application, which you can do with managed C# easy enough.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Blizzard

Reversing CRL back into C#, VB.NET or any other .NET language is really not a big deal.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Ryex

I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

ForeverZer0

Quote from: Blizzard on February 14, 2011, 04:35:53 pm
Reversing CRL back into C#, VB.NET or any other .NET language is really not a big deal.


No, like I said, I'm no hacker. I merely know of Reflector.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

G_G

I shall punch you with a force of one thousand donkey kicks. A mere 1/10th force of chuck norris's sneeze.

G_G

Alright F0. Got the file uploaded. I modified the numbers and the methods. Have not updated the PHP version yet.