topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday April 16, 2024, 3:38 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: fSekrit won't open after OS reinstall  (Read 11446 times)

Kamots

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 2
    • View Profile
    • Donate to Member
fSekrit won't open after OS reinstall
« on: December 28, 2009, 01:08 PM »
I decided replace XP 32-bit with Win7 64-bit (same hardware). XP to Win7 requires a complete OS reinstall, which I did, and then restored my files. I keep an fSekrit 1.2 file on my system. To my dismay, it won't open. I know for certain the password is correct, but it refuses to open. All I receive is an invalid passphrase message.

In fact, I can now find NO way to open the fSekrit document. I've even tried copying the file back to an XP 32-bit system. The executable runs, but the document will not open. All I can get is the dialog with the invalid passphrase message. Obviously I have a different SID now, and the file has different permissions, but are those involved in the encryption in any way? I wouldn't think so.

How does fSekrit know the passphrase is invalid? Is it encoding something into the encrypted file that should be recognizable upon decryption? Obviously it can't know whether my file content is correct upon decryption, so there must be something knowable that it encrypted in order to make the determination?

For reasons related to the sensitivity of the file content itself I can't just pass along the file and its password to debug with, but maybe I can recreate the problem with some benign content, hmnnn.

Any ideas?

f0dder

  • Moderator
  • Joined in 2005
  • *****
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: fSekrit won't open after OS reinstall
« Reply #1 on: December 29, 2009, 11:21 AM »
Sorry if this reply is a bit rushed, but I'm running pretty late for work - felt that it was important to address the issue, though, at least by acknowledging I've seen the post.

SID etc should play no role, as long as you can access the file, and considering you're getting the "invalid passphrase" instead of fSekrit opening with an empty window, at least the data is there and is recognized. But it might have been corrupted somehow during your backup or restore?

fSekrit stores a hash of the non-encrypted text and uses that for verification upon decryption. I hope to have some spare time tomorrow to throw a little program together that reads a fSekrit document and outputs the results of decryption whether the hash matches or not...
- carpe noctem

Kamots

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 2
    • View Profile
    • Donate to Member
Re: fSekrit won't open after OS reinstall
« Reply #2 on: December 29, 2009, 10:15 PM »
A tool to bypass the hash check and output the result of the decryption would be perfect. The results of that will at least help narrow down the problem. Unfortunately I don't have an "original" copy of the file anymore from the XP 32 system. I backed up the system before I started, then I installed Win7 on top of the hard disk in the system. Then I restored all my files from the backup (backed up to a large external drive), then created a brand new backup of the freshly installed system. After about a week, once everything was working fine, I deleted the old backup files from that final backup of the XP 32 system because all my files were intact and I was already running on my new backup set. So, the only version of the file I have is one that has been manipulated by Win7 64-bit, but NTFS is NTFS, so I can't imagine how it could be the issue. If I have some time over this coming holiday weekend, I'm going to try to recreate the problem, but a tool that will bypass the hash check and decrypt the file will certainly help. Thanks! Love this little program, by the way! Never had any issues until this.

f0dder

  • Moderator
  • Joined in 2005
  • *****
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: fSekrit won't open after OS reinstall
« Reply #3 on: December 30, 2009, 05:50 PM »
Ok, I've slapped something very temporary together. Took a bit longer than expected, but rather than just hacking this together, I spent a little time updating some internals so they allow (much) better for handling several fSekrit file format versions; this will be nice if I get around to writing an updater, and cleanups were needed before I extend the format... but I digress.

The test tool currently only supports v2 of the container format, introduced with fSekrit 1.2; v1 support will be added later, I wanted to get a test tool to you as quick as possible. The tool should have supported 1.2 -> 1.40, but in v1.35 I apparently started including the trailing NUL character of the passphrase - oops! Since the format string wasn't updated I don't have an easy way of differentiating these versions, but I'll come up with a solution eventually (will either check hash of fSekrit exe or let user specify which way to try). Lesson learned: write test suites, you silly fool.

I'm attaching two files: SekritReader_test01.zip is for 1.1-1.2, SekritReader_test02.zip is for 1.3-1.40
- carpe noctem

f0dder

  • Moderator
  • Joined in 2005
  • *****
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: fSekrit won't open after OS reinstall
« Reply #4 on: December 30, 2009, 05:57 PM »
Oops, forgot to mention usage: run from a commandline with .exe name as first argument and passphrase as second. NO error checking, very raw output. If spaces in passphrase, "enclosing it like this" should work. If non-ASCII chars in passphrase, dunno what the result is :)
- carpe noctem
« Last Edit: January 06, 2010, 06:26 PM by f0dder »

f0dder

  • Moderator
  • Joined in 2005
  • *****
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: fSekrit won't open after OS reinstall
« Reply #5 on: January 10, 2010, 10:30 PM »
Kamots, are you still with us? Had a chance to test the SekritReader files posted above?
- carpe noctem