ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old September 24th, 2003, 02:40 AM
Unik Unik is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 8 Unik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Encryption

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.

Reply With Quote
  #2  
Old September 24th, 2003, 09:26 AM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 6 m 22 sec
Reputation Power: 76
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?

Reply With Quote
  #3  
Old September 24th, 2003, 02:58 PM
benseri benseri is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Israel
Posts: 102 benseri User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to benseri
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.

Reply With Quote
  #4  
Old September 24th, 2003, 03:01 PM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
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.

Reply With Quote
  #5  
Old September 25th, 2003, 01:07 AM
Unik Unik is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 8 Unik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yup.... I want to encrypt the actual code, so people can't read it.

Reply With Quote
  #6  
Old September 25th, 2003, 05:56 AM
benseri benseri is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Israel
Posts: 102 benseri User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to benseri
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.

Reply With Quote
  #7  
Old September 25th, 2003, 03:51 PM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
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.

Reply With Quote
  #8  
Old October 2nd, 2003, 01:51 AM
Unik Unik is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 8 Unik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hmmm...sounds complex. do you know of any particular link which has an example on how to use this?

Thanks.

Reply With Quote
  #9  
Old October 2nd, 2003, 02:32 AM
pda8333 pda8333 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 216 pda8333 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 6 m 31 sec
Reputation Power: 5
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.

Reply With Quote
  #10  
Old October 2nd, 2003, 05:01 AM
Unik Unik is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 8 Unik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
That's the encoder right? Anybody can just download the decoder and decrypt it easily.

Thanks anyway.

Reply With Quote
  #11  
Old October 2nd, 2003, 08:01 AM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
Quote:
Originally posted by Unik
hmmm...sounds complex.

welcome to secure programming
Quote:
do you know of any particular link which has an example on how to use this?


example of what?

Last edited by unatratnag : October 2nd, 2003 at 08:04 AM.

Reply With Quote
  #12  
Old October 2nd, 2003, 09:53 PM
Unik Unik is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 8 Unik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
It's ok unatratnag. I have already read up on this. Thanks!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Encryption


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway