Go Back   Wireless and Wifi Forums > News > Newsgroups > comp.security.misc
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-11-2006, 02:24 PM
Volker Birk
Guest
 
Posts: n/a
Default Re: How a tools knows it's successfully decrypted a file?

www.EdmundKirwan.com <iamfractal@hotmail.com> wrote:
> My question is: how does a tool know that it's successfully decrypted a
> file?


By checksums.

Yours,
VB.
--
"Life was simple before World War II. After that, we had systems."
Grace Hopper

Reply With Quote
  #2 (permalink)  
Old 12-11-2006, 03:02 PM
www.EdmundKirwan.com
Guest
 
Posts: n/a
Default How a tools knows it's successfully decrypted a file?

Hi, folks,

A newbie question (I couldn't find the right Googlism to hit a result,
nor did the FAQ shine a light).

I've used a couple of tools to encrypt and decrypt files for me based
on a password of my choice. When I try decrypting an encrypted file
with the wrong password, tools generally respectfully tell me that I've
made a tit of myself, and ask me to use the right password.

I hadn't thought much about this till the other day, using a new(ish)
tool to decrypt. I entered the wrong password (unknowingly, of course)
and it told me that the file was decrypted successfully; but a look at
the contents told me that this was not so. I think it just re-encrypted
the file using the, "New," password.

My question is: how does a tool know that it's successfully decrypted a
file?

I can think of a way of doing it, but it seems a little ... insecure:
the tool adds the password to the plaintext before encryption and then
encrypts it along with everything else. Then, after decryption, the
tool checks that the first X bytes match the password, and if so:
success.

Can anyone answer my question above?

Thanks for your time,

..ed


Reply With Quote
  #3 (permalink)  
Old 12-12-2006, 07:30 AM
www.EdmundKirwan.com
Guest
 
Posts: n/a
Default Re: How a tools knows it's successfully decrypted a file?


Volker Birk wrote:
> www.EdmundKirwan.com <iamfractal@hotmail.com> wrote:
> > My question is: how does a tool know that it's successfully decrypted a
> > file?

>
> By checksums.
>
> Yours,
> VB.
> --
> "Life was simple before World War II. After that, we had systems."
> Grace Hopper


Ah!

So if file novel.txt is being encrypted to produce novel.enc, then I
presume a checksum is generated for the plaintext and stored (for
example) as the first 8 bits of novel.enc, and then the encrypted data
is stored after the checksum. And when be de-crypted, the tool strips
away the first 8 bits of novel.enc before applying the decrption
algorithm to the rest.

Though if this storing of the checksum in the first 8 bits is not
standardised, then I suppose it's unlikely that a file encrypted with
blowfish using one tool could be decrypted by another tool using
blowfish: as one could store the checksum in the first 8 bits, and one
could store the checksum in the last 8 bits.

Thanks for the information,

..ed


Reply With Quote
Sponsored Links
Reply

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Acer Aspire 5000 laptop DVD drive does not burn DVDs correctly - Unspecified Recorder Error Sid B alt.comp.hardware 4 03-16-2007 11:31 PM
Viewing/opening file sent by secure method Zak alt.computer.security 1 02-28-2007 08:58 AM
Viewing/opening file sent by secure method Zak comp.security.misc 1 02-28-2007 08:58 AM
a strange DVD burner problem atalla alt.comp.hardware 0 12-07-2006 12:28 PM
Corrupt NTFS filesystem Citizen Bob alt.comp.hardware 144 11-11-2006 07:38 PM


All times are GMT. The time now is 07:33 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45