View Full Version : JS encrypt method
For my encryption program currently Im working on a way how to make it so that the program encrypts and decrypts better. Well to do this I need to remove one vital thing. The "|"'s. When it encrypts something it uses the letters unicode value multplied and added by a special number depending on the key they entered. Well the problem is is that someone could easily decrypt it because of the "|"'s put in between multiplied and added UNICODE values. So Im trying to think of a new way for the program to know where to stop decrypting one letter and start decrypt the next... Do any of you know of a way that I might do this? I have already added random numbers at specified places. Am currently working on double encryption and a special thing to make it harder... But Im trying to get this impossible to crack... So any help is appreciated.
PS: The program is written in JS
PPS: The "current" source code is at http://davidstests.tripod.com/encrypt.txt
for example
541942100|86253688835240|39355869060545|41426338181445|55112750593440|82366439428680|53391103620995|62419291269355|32112750593440|78341775236365|88401673989130|67355869060545|72112750593440|48426338181445|81391103620995|57412244357265|10221977730835|
is "Hey how are you?" encrypted with blah! Those |'s are a big security risk!
Genius Boy
10-28-02, 00:35
Answering your post:
I have no idea. Honestly. But I have to say that that is a very cool program. I'm considering stealing it and playing around some.
Could I ask what this is for? Just fun?
Reasons:
-Fun
-I was bored at 2 AM
-I've always been interested in encryption
-Im WAY paranoid so security
-Im learning JS so to get comfortable with JS as well...
And if you plan on using it please do leave that little top comment :). And I will keep this board posted on advancements. I plan to eventually have double layer encryption/decryption, more random numbers, subtracting the answer from a specified number determined by the key... If you REALLY like it, pay me :p Just kidding
EDIT: And I plan to port it to C one day when Im done with it in JS... But thats when I have time... And school eats up my time. So you may not see a C version until the summer... :(
Genius Boy
10-28-02, 00:43
Or maybe just use a number instead of the '|' symbol in your code.
Even more elaborate:
Create another script to run alongside that which inserts random letters every so many digits depending on the key they entered. Have it so that only certain letters are inserted by the program. Then use a letter which will not be inserted by the random generator in place of the '|'.
Ex: have a random letter, either w, h, e, k, q, u, s, a, and v inserted at random, then have either z, s, t, r, or p inserted in place of the '|'.
I know it's elaborate and probably not practicle, but it's all I've got:D
dude! THATS BRILLIANT! THATS EXACTLY WHAT I NEED!
/hugs and kisses Genius Boy
Now I can see why your name is GENIUS boy ;) Thank you agin! :)
Genius Boy
10-28-02, 00:46
I, ummm, have a GIRLfriend. But thanks anyways:D
Brilliant, Brilliant, Brilliant, I've already decided how it will work with the double layer encryption too! Mwhahahaha... Soon I will introduce "v902 encryption" And then people will look at RSA and think "pfff what a waste" :p :D
Wait, damn it, implementing that in decryption is gonna be hard as hell!
EDIT: Such a fickle creature I am.. For I already know how to implement it... LOL!
Wrote the encrypt function and part of the decrypt function during Geometry :)
Genius Boy
10-29-02, 21:08
At least you found a good use for the class;)
:D Yeah, I'll probably have a beta release over the weekend with graphics and all that... I'll also try to have double/triple layer encryption by then...
vBulletin® v3.8.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.