Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Government > Crypto > Re: Basic Quest...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 8 Topic 349 of 474
Post > Topic >>

Re: Basic Question

by Maarten Bodewes <maarten.bodewes@[EMAIL PROTECTED] > Oct 28, 2006 at 05:07 PM

on3_person wrote:
> It seems like a basic question to me at least.  When using any method of

> encryption and you're going to decrypt something, how does the
encryption 
> method know that you've got the right password/key?  Is there something 
> stored within the file, that when you enter your key it says "yes, that
is 
> correct"?  If you're given an encrypted statement and told to decrypt
it, 
> how do you know you've done it correctly unless you're told that it is 
> correct(assuming it's not plain text and extremely visible)?

As said before, for symetric ciphers (DES/AES) you don't. You need a 
separate mechanism. One way to do that is to put in a hash, message 
authentication code or simply a known piece of plaintext.

Note that DES and AES are block ciphers. They encrypt any piece of 
plaintext into a cipher text *of the same length*. This means that every 
piece of ciphertext decodes to a piece of plaintext, otherwise there 
would be pieces of plaintext you cannot encode, or pieces of ciphertext 
you cannot decode to the original plaintext.

It's a common mistake to just encrypt something in the case an attacker 
can change the message (man-in-the-middle). You may have confidentiality 
(this is also dependent on other factors of course) but you cannot be 
sure that the attacker did not change the ciphertext.

Even if these changes are picked up by the underlying system (e.g., the 
computer that tries to read an invalid message), you'll probably end up 
with an error that does not relate to the cryptographic problem. For 
instance, the encrypted HTML page does not contain valid HTML.

Maarten
 




 8 Posts in Topic:
Basic Question
"on3_person" &l  2006-10-07 01:37:08 
Re: Basic Question
soneill@[EMAIL PROTECTED]  2006-10-08 15:51:10 
Re: Basic Question
Hagen Ladwig <hal22@[E  2006-10-18 17:08:57 
Re: Basic Question
Anne & Lynn Wheeler &  2006-10-18 11:36:04 
Re:Basic Question
soneill@[EMAIL PROTECTED]  2006-10-20 20:40:01 
Re: Basic Question
Taneli Huuskonen <tane  2006-10-21 17:44:13 
Re: Basic Question
soneill@[EMAIL PROTECTED]  2006-10-22 18:40:11 
Re: Basic Question
Maarten Bodewes <maart  2006-10-28 17:07:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 5:51:14 CST 2008.