Best Encryption algorithm !

Hello there,
I've some Binary and Text data in some files.
What's the best algorithm to encrypt them ?
Regards,
[143 byte] By [Hadi Rezaie] at [2007-11-17 22:39:56]
# 1 Re: Best Encryption algorithm !
well..
depend what kind of encryption ur looking for.
RSA-1024 would be good :)
DEA/AES/IDEA/PGP...etc
they are all good :)
i asure you no one will try decrypt them, and if he will it will take him lotsa time, depend on what attack he is using though.
never use a readble chars for ur password, i.e: money
as people will try dictunary attack..
Bengi at 2007-11-10 8:41:39 >
# 2 Re: Best Encryption algorithm !
Best for what?
keeping the for yourself so nobody can read them? or sending them to somebody over a network, so they cannot be read when intercepted?

if they are only for yourself a simple method would be xor'ing them with some binary file on your pc (or on disk), maybe a randomly generated sequence; (called "one time pad")

for sending them, take a look at RSA or PGP (which uses RSA)

There are also some examples here on the site
http://www.dev-archive.com/misc/index.shtml
take a look at cryptoAPI

hope this helps,

Steven Roelants
s. roelants at 2007-11-10 8:42:41 >
# 3 Re: Best Encryption algorithm !
One-time pad is best (its perfect security, information theoretically) but you won't get this by running a pseudo-random number genrator to generate the sequence (that would give you a form of stream cipher, which is actually quite feasible to break). You will need a source that has algorithmic independence (any partially quantum source or source with enough complexity over the time scale as to prohibit predicability -- like a partially broken circuit (IBM has a commercial version of this)).

I am only answering the question of what is best, security-wise. There are many other "bests" as far as speed or costs, but I hope I can given you a start!
galathaea at 2007-11-10 8:43:46 >
# 4 Re: Best Encryption algorithm !
i was actually going for one that is very easy to implement, like xor the file with lets say mfc42.dll (of course don't tell anyone)

but you are absolutely right, i didn't call it "best" though :D seems like i'll have to watch more carefully what i type
s. roelants at 2007-11-10 8:44:42 >
# 5 Re: Best Encryption algorithm !
The Rijndael algorithm is the best. It is the new AES. Its also a block cipherand its predecessor is the square cipher.

Regards
Brandon Parker
Brandon Parker at 2007-11-10 8:45:52 >
# 6 Re: Best Encryption algorithm !
As for algorithmic encryption (not a one-time pad) there will be much controversy about a "best". Rijndael's "best" status is controversial because there appears to be some head way into its cracking with a differential cryptanalysis scheme that is easier to perform on it vs. some other popular block ciphers, and because its first and last steps do not add cryptographic security. However, there are similar controversies surrounding many of the cryptographic systems out there. And of course, in all cases key size is one of the most important considerations.

But, it is very important to understand that all of your options out there are reasonably secure for everyday purposes like transmission over insecure lines. As long as you use a modern cryptographic scheme with a large enough key size, you should have no problems. So then "best" might be more concerned with cost and ease of use. For that, there are many free libraries available out there to get you started.

For the conspiracy theorists out there: there has been talk that the dc attacks on Rijndael were not taken seriously by the standardization committee for AES because of NSA input... :)
galathaea at 2007-11-10 8:46:51 >
# 7 Re: Best Encryption algorithm !
The attack for Rijndael

The standard techniques of differential and linear cryptanalysis can be adapted to be used against Rijndael. Because of the way matrix multiplication works, and because in GF(2^8), all the coefficients of the Mix Column matrix (as indeed all numbers from 1 to 255) have reciprocals, a specific attack, originally developed for use against its predecessor Square, called the "Square attack", can be used as well.

If one uses 256 blocks of chosen plaintext, where every byte but one is held constant, and that one is given all 256 possible values, then after one round of Rijndael, four bytes will go through all 256 possible values, and the rest of the bytes will remain constant. After a second round, sixteen bytes will each go through all 256 possible values, without a single duplicate, in the encipherment of the 256 blocks of chosen plaintext. (For a 128-bit block, this is every byte; for larger blocks, the rest of the bytes will remain constant.) This interesting property, although not trivial to exploit, can be used to impose certain conditions on the key when one additional round, before or after the two rounds involved, is present.

The possibility of this attack was first noted by the developers of Square and Rijndael themselves, and was noted in the paper that initially described Square.

--------------------------

While this may be true... The actual implementation of this attack is no trivial endevor.

I used the word "best" because it is generally considered the most secure out of all publicly known ciphers.

Regards
Brandon Parker
Brandon Parker at 2007-11-10 8:47:51 >
# 8 Re: Best Encryption algorithm !
Windows has a cryptography API that provides encryption that as far as I know cannot be decrypted, at least not without a lot of processing power. Internet Explorer is capable of 128-bit encryption used for credit card orders for example. I assume that that 128-bit encryption is available in the cryptography API.

In Paj's Home: Cryptography (http://pajhome.org.uk/crypt/index.html) there seems to be useful information about RSA cryptography.
Sam Hobbs at 2007-11-10 8:48:54 >
# 9 Re: Best Encryption algorithm !
Thanks for all helps ;)
Hadi Rezaie at 2007-11-10 8:49:53 >
# 10 Re: Best Encryption algorithm !
I have details on quite a few encryption algorithms available at my website - The Data Encryption Page ( http://www.anujseth.com/crypto/)
anujseth at 2007-11-10 8:50:54 >
# 11 Re: Best Encryption algorithm !
There is "best" encryption currently is Rijndael (http://csrc.nist.gov/encryption/aes/rijndael/) or the Advanced Encryption Standard. It's name is derived from the name of the (Belgian) inventors. Click here (http://fp.gladman.plus.com/cryptography_technology/rijndael/) for implementations in C/C++ and assembler. It's not proven to be "uncrackable" (all algorithms are if you try all keys) though.
Simon666 at 2007-11-10 8:51:59 >
# 12 Re: Best Encryption algorithm !
Triple DES is a good industry standard.

Attached is s portable implementation written in ANSI C.

It may not be the fastest, but its free...
Fazer1000 at 2007-11-10 8:52:58 >
# 13 Re: Best Encryption algorithm !
Those are cool ;)

Thanks Simon666 and Fazer1000

With Best Regards,
Hadi Rezaie at 2007-11-10 8:53:54 >