Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 10th, 2005, 8:23 PM   #1
Eryk
Programmer
 
Join Date: Jul 2005
Posts: 62
Rep Power: 4 Eryk is on a distinguished road
Base64 Encryption

I've created a script for base64 encryption. That includes binary conversions, since those are required for bse64. The binary conversions do work as far as I have tested. It only does numbers, because that's what is going to be converted to and from binary.

The problem is not a syntax/javascript error, but just inproper output. I believe the problem to be in the decryption, but it may be in the encryption. I'm pretty sure it is just something stupid that I overlooked. I've gone through the script several times and done tests, but they didn't help. The script is pretty well commented and can be found here:
http://digitalcs.net/tests/enc.htm
Eryk is offline   Reply With Quote
Old Aug 12th, 2005, 8:37 AM   #2
Eryk
Programmer
 
Join Date: Jul 2005
Posts: 62
Rep Power: 4 Eryk is on a distinguished road
I've fixed the problem.
Eryk is offline   Reply With Quote
Old Aug 18th, 2005, 5:05 PM   #3
mackenga
Professional Programmer
 
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4 mackenga is on a distinguished road
Not to be a pedant, but base64 isn't encryption. Base64 is a method of encoding data so that it can be safely transmitted in an ASCII context (like plain text email); the data isn't shrouded or protected from prying eyes in any way.
mackenga is offline   Reply With Quote
Old Aug 18th, 2005, 6:17 PM   #4
Eryk
Programmer
 
Join Date: Jul 2005
Posts: 62
Rep Power: 4 Eryk is on a distinguished road
Hmm, couldn't it be used as an encryption though?
Eryk is offline   Reply With Quote
Old Aug 18th, 2005, 7:32 PM   #5
skuinders
Hobbyist Programmer
 
skuinders's Avatar
 
Join Date: Jun 2005
Location: MA, US
Posts: 204
Rep Power: 4 skuinders is on a distinguished road
A transformation scheme that is well known and trivial encode and decode is not a good encryption scheme.
__________________
"A stupid man's report of what a clever man says can never be accurate, because he unconciously translates what he hears into something he can understand."
- B. Russell

http://web.bryant.edu/~srk2
skuinders is offline   Reply With Quote
Old Aug 18th, 2005, 8:24 PM   #6
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
Base64 for encryption? Hah! If you can get the original data with minimal effort, it's not encryption. Just security through obscurity...and this method isn't exactly secure either. it's real use is fitting the full range of 8 bit values into a character set (or getting around "special" characters)
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Aug 18th, 2005, 9:29 PM   #7
Eryk
Programmer
 
Join Date: Jul 2005
Posts: 62
Rep Power: 4 Eryk is on a distinguished road
Meh, the people I'm dealing with aren't exactly brilliant to say the least. However, I'll keep all that in mind.
Eryk is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:25 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC