|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Hey guys,
I need some help here. Do anyone know how to encrypt VBscript and Javascript? Or know of any links that will show me how? Thanks in advanced. ![]() |
|
#2
|
||||
|
||||
|
Do you mean encrypt data using vbs or javascript, or do you want to encrypt the actual code, so people can't read it or something?
|
|
#3
|
|||
|
|||
|
I don't know what Unik ment, But I'd realy like to know how to encrypte actual ASP code, is it possible?
I read about Windows Script Encoder, but I understood that it is very eas to break it, I even found the decoder of the script encoder free for download... Is their another way to encypte my script? Thanks, Ben. |
|
#4
|
|||
|
|||
|
Typically you generate a hash file signature of the code. With a detachable .sig file you send your code. Run your code against the hash file to see if it's been changed. If this really is that high of security you might need to look at different ways if it's that dangerous such as public/private keys, vpn etc. You could probably publish your sig file somewhere too if you didn't want to send it with the code.
|
|
#5
|
|||
|
|||
|
Yup.... I want to encrypt the actual code, so people can't read it.
|
|
#6
|
|||
|
|||
|
Thanks for the replay, but I didn't realy understand how to encrypt it in the first place, what is a hash file, how do I generate it?
thanks, Ben. |
|
#7
|
|||
|
|||
|
Unik,
Find a program using a public/private key system to encrypt and decrypt. I use GPG. Then publish your public key on a keyserver or distribute it to trusted parties and encrypt with your private key. benseri, A hash is just a string of numbers as a result of some calculations. You have another program, open up your code, and have it output 20 characters and this will be your hash string. If anything changes the hash value will be the same. The one i use has about a 99.999% chance of collisions so i'm pretty happy with it. The only problem with this is if your system is compromised so can your hash code since they can see the hash formulae or even alter the program that checks to see if it's still good. What i do is sign it too meaning I enter a password and it takes that password, hashes it to 10 bits and puts taht into the hash file too so it'll be really hard to chance it then... i keep the program that checks on cd unwritable cd so no one can alter it wihtout changing the cd. same theory as keys. You publish your hash code or send it with the code, the problem with sending code completley encrypted is that it depends on how much you're sending, especially in emails.... you'll have to encrypt it specifically to each person when you're sending this code through the use of keys. With the hash you just have the sig file that only people with your decrypter can tell if it's unaltered or not. Last edited by unatratnag : September 25th, 2003 at 03:56 PM. |
|
#8
|
|||
|
|||
|
hmmm...sounds complex. do you know of any particular link which has an example on how to use this?
Thanks. |
|
#9
|
|||
|
|||
|
hi Unik,
guess we have some similarity in our questions. if you want a simpler but NOT that secure way, then try the screnc.exe, & hopefully nobody knows how to decrypt it. google for that filename. |
|
#10
|
|||
|
|||
|
That's the encoder right? Anybody can just download the decoder and decrypt it easily.
Thanks anyway. ![]() |
|
#11
|
||||
|
||||
|
Quote:
welcome to secure programming Quote:
example of what? Last edited by unatratnag : October 2nd, 2003 at 08:04 AM. |
|
#12
|
|||
|
|||
|
It's ok unatratnag. I have already read up on this. Thanks!
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Encryption |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|