kwanbis
May 2 2005, 11:29
Does anyone has any encrypt/decrypt routine i can use on one command line program? I'm actually using a simple XOR funtion, but i would like to use something more secure. Something 256bits strong.
Latexxx
May 2 2005, 12:03
kwanbis
May 2 2005, 12:21
that could be, but i prefer with (free) source ... and is it encrypt/decryp?
Latexxx
May 2 2005, 13:14
That link was only to demonstrate the usage of Google to find stuff like that. I haven't ever even used that piece of software and I can only suggest you to do some searching.
kwanbis
May 2 2005, 14:37
i have been searching, but couldn't find ... i know google and use it all the time ... but the info returned is more complex than i want to look at ...
Sebastian Mares
May 2 2005, 14:52
Latexxx
May 3 2005, 14:16
I'd use AES (Rijndael) because it is the only publically avilable algorhitm which has been approved by the US government to be used for "TOP SECRET" material.
QUOTE
The design and strength of all key lengths of the AES algorithm (i.e., 128, 192 and 256) are sufficient to protect classified information up to the SECRET level. TOP SECRET information will require use of either the 192 or 256 key lengths. The implementation of AES in products intended to protect national security systems and/or information must be reviewed and certified by NSA prior to their acquisition and use.
http://www.cnss.gov/Assets/pdf/cnssp_15_fs.pdf
rjamorim
May 3 2005, 17:57
QUOTE(Latexxx @ May 3 2005, 05:16 PM)
I'd use AES (Rijndael) because it is the only publically avilable algorhitm which has been approved by the US government to be used for "TOP SECRET" material.
Well, from another point of view, Blowfish is an older algorithm that has been much more throughly scrutinized and nobody ever found a hole in it.
Also, it's strange, I remember reading somewhere that Rijndael was to be used for "Classified" and "Confidential" information. The algorithms used for "Secret" and "Top Secret" would be themselves secret (which makes more sense, IMO). I guess its clearance changed over time as they convinced themselves it's really secure.
No matter what, both algorithms should be more than enough for all purposes other than insanely confidential information, like nuclear bomb plans.
Edit: ah, this article casts more light on this issue:
http://www.financialcryptography.com/mt/archives/000113.html
QUOTE(rjamorim @ May 3 2005, 06:57 PM)
Well, from another point of view, Blowfish is an older algorithm that has been much more throughly scrutinized and nobody ever found a hole in it.
Available here:
schneier.comFrom the same guy there is his AES submission "Twofish"
p0l1m0rph1c
May 5 2005, 19:20
Heh, from using a XOR to a 256-bit key secure algorithm goes a really large step.
As for the algorithms, I do favor AES (Rijndael) for several reasons. First off, unlike DES, it wasn't "changed" by NSA, so the suspicions about them being able to break it easily are low. It is also very fast (it was the fastest of the 5 last candidates for the AES, along with RC6, by RSA). Sure, it is not as fast as Blowfish, which was designed specifically for 32-bit machines, but is very fast indeed. And the fact that NSA itself investigated deeply Rijndael and didn't found any weaknesses is important here (actually, both MARS, SERPENT and TwoFish were considered "very" secure, according to the 2nd AES conference. But the obvious advantages of Rijndael overall, which was "adequately secure" made it reach AES).
It is true though, that no weaknesses on Blowfish were found, but I personally think it is time to move on to more advanced algorithms.
Anyway, what are you using the algorithm for? I mean, a XOR is enough if you want your brother not to sneak on your files, but if there's the need to have security, I'd go with AES.
kwanbis
May 5 2005, 21:14
I could go with AES or Blowfish, the one that has a function like
Function Blowfish(Text, Password): Text
Function AES(Text, Password): Text
ready to use would win
QUOTE(kwanbis @ May 2 2005, 12:29 PM)
I'm actually using a simple XOR funtion, but i would like to use something more secure.
Actually you won't find anything more secure than XOR so long as you have random keys and never reuse them. The inconvenience is that the keys are as long as the files you want to protect.
Sebastian Mares
May 6 2005, 04:37
QUOTE(kwanbis @ May 6 2005, 05:14 AM)
I could go with AES or Blowfish, the one that has a function like
Function Blowfish(Text, Password): Text
Function AES(Text, Password): Text
ready to use would win

Does it have to be Delphi? I mean, could you use an ActiveX DLL for example (with VB souce code)?
p0l1m0rph1c
May 6 2005, 07:09
Yeah, well,
this implementation by Dr. Brian Gladman is quite good.
Heh, using a one-time pad is a bit unconfortable to use
Sebastian Mares
May 6 2005, 08:54
If interested, here's a VB implementation fixed by me:
http://planet-source-code.com/vb/scripts/S...=48770&lngWId=1I also have BlowFish and TwoFish if interested.