![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Programmer
Join Date: Jul 2005
Posts: 62
Rep Power: 4
![]() |
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 |
|
|
|
|
|
#2 |
|
Programmer
Join Date: Jul 2005
Posts: 62
Rep Power: 4
![]() |
I've fixed the problem.
|
|
|
|
|
|
#3 |
|
Professional Programmer
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4
![]() |
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.
|
|
|
|
|
|
#4 |
|
Programmer
Join Date: Jul 2005
Posts: 62
Rep Power: 4
![]() |
Hmm, couldn't it be used as an encryption though?
|
|
|
|
|
|
#5 |
|
Hobbyist Programmer
Join Date: Jun 2005
Location: MA, US
Posts: 204
Rep Power: 4
![]() |
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 |
|
|
|
|
|
#6 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
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 |
|
|
|
|
|
#7 |
|
Programmer
Join Date: Jul 2005
Posts: 62
Rep Power: 4
![]() |
Meh, the people I'm dealing with aren't exactly brilliant to say the least. However, I'll keep all that in mind.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|