keybase / keybase/keybase-issues

Decrypting secret key from bundle

Open
#3,039 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
899
Forks
40
PR merge metrics
No merged PRs in 30d

Description

Hello,

I would like to access my secret key without exporting it from my profile or using the Keybase command line tool.

When I login and view user.private_keys.primary.bundle, there is a string which is Base64(MessagePack(some stuff + TripleSec(my private key))). [1]

I believe I have partially reduced this down to TripleSec(my private key), where it is a string beginning with 1c94d7de000…

How do I decrypt this? I installed the python command line tool [2] and ran triplesec -k < mypassword > dec 1c94d7de000… but I get ERROR: Failed authentication of the data. This happens when I provide the wrong key for decryption.

Is the the key that was used to encrypt my private key with TripleSec not my Keybase password?

Thanks,
John

[1] TripleSec - https://keybase.io/triplesec
[2] Python command Tool - https://github.com/keybase/python-triplesec#user-content-command-line-tool

Contributor guide

No contributing guide indexed for this repository

Research direction

No project files or tests are named. Start by reviewing the bundle description and the linked TripleSec Python command-line documentation, then reproduce the reported decryption attempt. Done would require verified guidance explaining the expected key and supported decryption workflow.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cryptography
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.