How can one decrypt an encypted file without modifying file timestamp?

Posted: 01-21-2009, 10:11 AM
Hi,

I have a desktop computer and a laptop computer both running Windows XP with
NTFS file system. On the desktop I have an encrypted folder containing
several files. I need to make a copy of the encrypted folder on the laptop.
I copy the source folder to the Shared Documents folder of the desktop
computer, then I would like to copy it from there to the My Documents folder
of the laptop. The laptop and the desktop are networked together, of course.

The problem is this. If the folder in the Shared Documents folder is still
encrypted, it cannot be copied to the laptop's My Documents folder. However
if you decrypt the folder to enable it to be copied, all the file timestamps
are changed to the time the folder is decrypted. But I want the original
time stamp to be retained, because the unencrypted *source* data in the
folder files has not been modified by the operation. Any suggestions how
this can be done?

TIA,

Enquiring Mind


Reply With Quote

Responses to "How can one decrypt an encypted file without modifying file timestamp?"

Enquiring Mind
Guest
Posts: n/a
 
How can one decrypt an encypted file without modifying file timestamp?
Posted: 01-21-2009, 10:11 AM
Hi,

I have a desktop computer and a laptop computer both running Windows XP with
NTFS file system. On the desktop I have an encrypted folder containing
several files. I need to make a copy of the encrypted folder on the laptop.
I copy the source folder to the Shared Documents folder of the desktop
computer, then I would like to copy it from there to the My Documents folder
of the laptop. The laptop and the desktop are networked together, of course.

The problem is this. If the folder in the Shared Documents folder is still
encrypted, it cannot be copied to the laptop's My Documents folder. However
if you decrypt the folder to enable it to be copied, all the file timestamps
are changed to the time the folder is decrypted. But I want the original
time stamp to be retained, because the unencrypted *source* data in the
folder files has not been modified by the operation. Any suggestions how
this can be done?

TIA,

Enquiring Mind


Reply With Quote
Ron Hardin
Guest
Posts: n/a
 
Re: How can one decrypt an encypted file without modifying file timestamp?
Posted: 01-21-2009, 10:41 AM
Enquiring Mind wrote:
>
> Hi,
>
> I have a desktop computer and a laptop computer both running Windows XP with
> NTFS file system. On the desktop I have an encrypted folder containing
> several files. I need to make a copy of the encrypted folder on the laptop.
> I copy the source folder to the Shared Documents folder of the desktop
> computer, then I would like to copy it from there to the My Documents folder
> of the laptop. The laptop and the desktop are networked together, of course.
>
> The problem is this. If the folder in the Shared Documents folder is still
> encrypted, it cannot be copied to the laptop's My Documents folder. However
> if you decrypt the folder to enable it to be copied, all the file timestamps
> are changed to the time the folder is decrypted. But I want the original
> time stamp to be retained, because the unencrypted *source* data in the
> folder files has not been modified by the operation. Any suggestions how
> this can be done?
>
> TIA,
>
> Enquiring Mind
Well, if you have Cygwin installed, just make a small file with the timestamp
you want and set the files you want with that timestamp

$ echo hello world > timestampfile # create garbage file
$ touch -r origfile timestampfile # copy the timestamp of the original
$ .. do anything you want with the original file
$ touch -r timestampfile origfile # copy the timestamp back to the original
$ rm timestampfile # delete the garbage file

Presumably you can do the same thing with a linux live CD. Modern ubuntus
for example understand NFTS filesystems. Try it with a dummy file first.

--
rhhardin@mindspring.com

On the internet, nobody knows you're a jerk.
Reply With Quote
Ron Hardin
Guest
Posts: n/a
 
Re: How can one decrypt an encypted file without modifying file timestamp?
Posted: 01-21-2009, 10:41 AM
Enquiring Mind wrote:
>
> Hi,
>
> I have a desktop computer and a laptop computer both running Windows XP with
> NTFS file system. On the desktop I have an encrypted folder containing
> several files. I need to make a copy of the encrypted folder on the laptop.
> I copy the source folder to the Shared Documents folder of the desktop
> computer, then I would like to copy it from there to the My Documents folder
> of the laptop. The laptop and the desktop are networked together, of course.
>
> The problem is this. If the folder in the Shared Documents folder is still
> encrypted, it cannot be copied to the laptop's My Documents folder. However
> if you decrypt the folder to enable it to be copied, all the file timestamps
> are changed to the time the folder is decrypted. But I want the original
> time stamp to be retained, because the unencrypted *source* data in the
> folder files has not been modified by the operation. Any suggestions how
> this can be done?
>
> TIA,
>
> Enquiring Mind
Well, if you have Cygwin installed, just make a small file with the timestamp
you want and set the files you want with that timestamp

$ echo hello world > timestampfile # create garbage file
$ touch -r origfile timestampfile # copy the timestamp of the original
$ .. do anything you want with the original file
$ touch -r timestampfile origfile # copy the timestamp back to the original
$ rm timestampfile # delete the garbage file

Presumably you can do the same thing with a linux live CD. Modern ubuntus
for example understand NFTS filesystems. Try it with a dummy file first.

--
rhhardin@mindspring.com

On the internet, nobody knows you're a jerk.
Reply With Quote
Ron Hardin
Guest
Posts: n/a
 
Re: How can one decrypt an encypted file without modifying file timestamp?
Posted: 01-21-2009, 10:51 AM
Ron Hardin wrote:
>
> Enquiring Mind wrote:
> >
> > Hi,
> >
> > I have a desktop computer and a laptop computer both running Windows XP with
> > NTFS file system. On the desktop I have an encrypted folder containing
> > several files. I need to make a copy of the encrypted folder on the laptop.
> > I copy the source folder to the Shared Documents folder of the desktop
> > computer, then I would like to copy it from there to the My Documents folder
> > of the laptop. The laptop and the desktop are networked together, of course.
> >
> > The problem is this. If the folder in the Shared Documents folder is still
> > encrypted, it cannot be copied to the laptop's My Documents folder. However
> > if you decrypt the folder to enable it to be copied, all the file timestamps
> > are changed to the time the folder is decrypted. But I want the original
> > time stamp to be retained, because the unencrypted *source* data in the
> > folder files has not been modified by the operation. Any suggestions how
> > this can be done?
> >
> > TIA,
> >
> > Enquiring Mind
>
> Well, if you have Cygwin installed, just make a small file with the timestamp
> you want and set the files you want with that timestamp
>
> $ echo hello world > timestampfile # create garbage file
> $ touch -r origfile timestampfile # copy the timestamp of the original
> $ .. do anything you want with the original file
> $ touch -r timestampfile origfile # copy the timestamp back to the original
> $ rm timestampfile # delete the garbage file
>
> Presumably you can do the same thing with a linux live CD. Modern ubuntus
> for example understand NFTS filesystems. Try it with a dummy file first.
>
Incidentally you can copy the encrypted file as easily; but I suppose the encryption
won't decrypt properly on the laptop host.

$ cd "//desktop/cygdrive/c/Documents and Settings/username/My Documents" # execute on the laptop
$ ls origfile | cpio -pm "/cygdrive/c/Documents and Settings/username/My Documents"

which will retain the timestamp (-pm)

I don't know how anybody lives with Windows without Cygwin to do things.
--
rhhardin@mindspring.com

On the internet, nobody knows you're a jerk.
Reply With Quote
Ron Hardin
Guest
Posts: n/a
 
Re: How can one decrypt an encypted file without modifying file timestamp?
Posted: 01-21-2009, 10:51 AM
Ron Hardin wrote:
>
> Enquiring Mind wrote:
> >
> > Hi,
> >
> > I have a desktop computer and a laptop computer both running Windows XP with
> > NTFS file system. On the desktop I have an encrypted folder containing
> > several files. I need to make a copy of the encrypted folder on the laptop.
> > I copy the source folder to the Shared Documents folder of the desktop
> > computer, then I would like to copy it from there to the My Documents folder
> > of the laptop. The laptop and the desktop are networked together, of course.
> >
> > The problem is this. If the folder in the Shared Documents folder is still
> > encrypted, it cannot be copied to the laptop's My Documents folder. However
> > if you decrypt the folder to enable it to be copied, all the file timestamps
> > are changed to the time the folder is decrypted. But I want the original
> > time stamp to be retained, because the unencrypted *source* data in the
> > folder files has not been modified by the operation. Any suggestions how
> > this can be done?
> >
> > TIA,
> >
> > Enquiring Mind
>
> Well, if you have Cygwin installed, just make a small file with the timestamp
> you want and set the files you want with that timestamp
>
> $ echo hello world > timestampfile # create garbage file
> $ touch -r origfile timestampfile # copy the timestamp of the original
> $ .. do anything you want with the original file
> $ touch -r timestampfile origfile # copy the timestamp back to the original
> $ rm timestampfile # delete the garbage file
>
> Presumably you can do the same thing with a linux live CD. Modern ubuntus
> for example understand NFTS filesystems. Try it with a dummy file first.
>
Incidentally you can copy the encrypted file as easily; but I suppose the encryption
won't decrypt properly on the laptop host.

$ cd "//desktop/cygdrive/c/Documents and Settings/username/My Documents" # execute on the laptop
$ ls origfile | cpio -pm "/cygdrive/c/Documents and Settings/username/My Documents"

which will retain the timestamp (-pm)

I don't know how anybody lives with Windows without Cygwin to do things.
--
rhhardin@mindspring.com

On the internet, nobody knows you're a jerk.
Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
TimeStamp in Video File VideoChick Windows XP Movie Maker 0 05-27-2006 01:59 AM
DX 9 file corrupt problems with TimeStamp Glint Windows XP Performance & Maintenance 0 05-04-2004 06:24 PM
Turn off timestamp on file read Turn off timestamp on file read Windows XP Performance & Maintenance 0 12-31-2003 07:11 AM
Encypted file in XP pro James Knighton Windows XP Security & Administration 4 10-18-2003 01:30 AM
how to prevent EFS unencryption from changing file timestamp? Timothy Dyck Windows XP Security & Administration 0 09-12-2003 08:10 PM