[GH-ISSUE #2104] Add support for handling "Key Files" in KeePass 2 #1407

Closed
opened 2026-10-15 04:15:41 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @kholia on GitHub (Mar 29, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2104

See github.com/magnumripper/JohnTheRipper@2c46a0d10f too.

Originally created by @kholia on GitHub (Mar 29, 2016). Original GitHub issue: https://github.com/openwall/john/issues/2104 See https://github.com/magnumripper/JohnTheRipper/commit/2c46a0d10fec3997841c4fff3a217c5b1ce87559 too.
Author
Owner

@Fist0urs commented on GitHub (Apr 5, 2016):

Hi @kholia

I'll take a look at that, as I said, but first I'd like to take a look to Keepass 1 keyfile handling within john and things seem a bit confusing:

looking at keepass2john, you print_hex the content of keyfile but in keepass_fmt_plug.c there are some strange things done:

The possibilities are only 32 or 64 bytes while parsing the provided input whereas keepass2john offers the possibility to inline bigger data.

I don't quite understand looking at the code what does john expect with provided keyfile: content of the keyfile in hexadecimal? Content unhexadecimal? (because generating a keyfile, I get a file containing a 64bytes hexadecimal string).

Could you give me some precisions please?

Thx!

<!-- gh-comment-id:205828033 --> @Fist0urs commented on GitHub (Apr 5, 2016): Hi @kholia I'll take a look at that, as I said, but first I'd like to take a look to Keepass 1 keyfile handling within john and things seem a bit confusing: looking at keepass2john, you print_hex the content of keyfile but in keepass_fmt_plug.c there are some strange things done: The possibilities are only 32 or 64 bytes while parsing the provided input whereas keepass2john offers the possibility to inline bigger data. I don't quite understand looking at the code what does john expect with provided keyfile: content of the keyfile in hexadecimal? Content unhexadecimal? (because generating a keyfile, I get a file containing a 64bytes hexadecimal string). Could you give me some precisions please? Thx!
Author
Owner

@kholia commented on GitHub (Apr 5, 2016):

Hi!

I have some travelling plans this week. So give me two weeks (at max) to reply back. Thanks for taking a look at this 👍

<!-- gh-comment-id:205829022 --> @kholia commented on GitHub (Apr 5, 2016): Hi! I have some travelling plans this week. So give me two weeks (at max) to reply back. Thanks for taking a look at this :+1:
Author
Owner

@Fist0urs commented on GitHub (Apr 5, 2016):

No problem, have a good time ;)

<!-- gh-comment-id:205829575 --> @Fist0urs commented on GitHub (Apr 5, 2016): No problem, have a good time ;)
Author
Owner

@Fist0urs commented on GitHub (Apr 10, 2016):

Ok to close this issue

<!-- gh-comment-id:208009774 --> @Fist0urs commented on GitHub (Apr 10, 2016): Ok to close this issue
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#1407
No description provided.