Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 05-26-2003, 10:51 PM   #1 (permalink)
saline
I am red.
 
saline's Avatar
 
Join Date: Feb 2003
Location: Cleveland, OH
Posts: 139
saline is on a distinguished road
Help with Security and debugging

Hey everybody I've just finished two scripts and I need some help with security. Usually I wouldn't be ultra concerned but the scripts deal heavily with passwords so it's kind of a good idea to make sure they're as secure as possible.

Any help would be appreciated you'll find more information here

update:

I'm also looking for suggestions of things I could add to make it better.
__________________
http://home.cwru.edu/~cak19

It's my homepage with odd little bits of javascript.
saline is offline   Reply With Quote
Old 06-03-2003, 05:07 AM   #2 (permalink)
moremonks
Registered User
 
Join Date: Jun 2003
Posts: 9
moremonks is on a distinguished road
Crypto?

Well, since cryptography, like the hokie pokie, is what it's all about, I guess you'd use some form of cryptography. Evidently there's a module called Crypt for Perl, which contains some good built in ciphers. Below are two links detailing their use, among other things:

http://www.perl.com/pub/a/2001/07/10/crypto.html

http://www.perl.com/pub/a/2001/09/26/crypto1.html

(There's also some other Perl library that acts as an interface to openssl, which would also be worth examining)

The first is about symmetric cryptography, the second about asymmetric. Read the articles for the difference between the two. I think you'd want to go asymmetric, since you'd have no secure channel to transmit a symmetric key. Assuming this, I think you would then generate a key for the user when they create their account, and generate one their acount on your side which would be somehow in their file. And I guess you would then encrypt their password information for storage, then send them the encrypted data directly, and let them and their key do their thing.

Granted, it's a bit vague, and with a high probability of partial to complete incorrectness, but it's an idea. Also, get Apache.
moremonks is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 02:27 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting