LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-28-2008, 10:43 AM   #1
Oxagast
Member
 
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410

Rep: Reputation: 30
aespipe


Hi,
I'm trying to use aespipe, but it seems that when I encrypt a file, then decrypt it, the checksums don't match. Why is this?

fluxnet temp # aespipe <filename.old >filename.aes
Password:
fluxnet temp # aespipe -d <filename.aes >filename.new
Password:
fluxnet temp # md5sum *
5a79fb5e05fbf27afacdbdabf8579cb8 filename.old
4be2e33aca5096ef990e43f1e5759f4e filename.aes
2094eeb7e921c9425163d0bade710241 filename.new
fluxnet temp #

I know the passwords were right, I did it over again three or four times thinking I screwed the password up, but now I think I'm either using it wrong, or something is broken. Any ideas?
 
Old 09-28-2008, 11:03 AM   #2
Oxagast
Member
 
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410

Original Poster
Rep: Reputation: 30
Nevermind I think I figured it out.
 
Old 09-28-2008, 12:28 PM   #3
Oxagast
Member
 
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410

Original Poster
Rep: Reputation: 30
No, wait, I didn't. It looks like the file is the same, like if i write stuff in the file, encrypt it, then decrypt it, the stuff in the file looks identical, but still when I do md5sum on it, the checksum doesn't match. Even if I can't see the difference, there must be one, is it currupting data somewhere?

oxagast@fluxnet:~$ cat blah
hello my name is marshall
oxagast@fluxnet:~$ cat blah2
göXœÜ3BË•ÔS
ÀYWü¶¦*þÄoxagast@fluxnet:~$
oxagast@fluxnet:~$ cat blah3
hello my name is marshall
oxagast@fluxnet:~$
oxagast@fluxnet:~$ md5sum blah*
0d3fdef543fd110f47f33b36436e95b7 blah
c42cf246afd2493ca202934228b41cbb blah2
2160fa55a640d7510bb9b412850d4de0 blah3
oxagast@fluxnet:~$

Something is wrong, I just don't know what.

Last edited by Oxagast; 09-28-2008 at 12:30 PM.
 
Old 09-28-2008, 12:40 PM   #4
Oxagast
Member
 
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410

Original Poster
Rep: Reputation: 30
oxagast@fluxnet:~$ hexdump -C blah
00000000 68 65 6c 6c 6f 20 6d 79 20 6e 61 6d 65 20 69 73 |hello my name is|
00000010 20 6d 61 72 73 68 61 6c 6c 0a | marshall.|
0000001a
oxagast@fluxnet:~$ hexdump -C blah2
00000000 47 92 41 23 c2 bc 4c 80 95 d4 53 0d 67 f6 58 9c |G.A#..L...S.g.X.|
00000010 16 dc 33 42 cb 0c c0 59 57 fc 10 b6 a6 ad fe c4 |..3B...YW.......|
00000020
oxagast@fluxnet:~$ hexdump -C blah3
00000000 68 65 6c 6c 6f 20 6d 79 20 6e 61 6d 65 20 69 73 |hello my name is|
00000010 20 6d 61 72 73 68 61 6c 6c 0a 00 00 00 00 00 00 | marshall.......|
00000020
oxagast@fluxnet:~$

Those last 6 sets of 0s arn't suppost to be there... Its like it forgot how long the original file was and never truncated the decrypted one.

Last edited by Oxagast; 09-28-2008 at 12:42 PM.
 
  


Reply



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 On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration