Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add show password in vault #7194

Open
jackfong66 opened this issue Sep 28, 2022 · 1 comment
Open

add show password in vault #7194

jackfong66 opened this issue Sep 28, 2022 · 1 comment
Labels

Comments

@jackfong66
Copy link

jackfong66 commented Sep 28, 2022

after open vault , i want find my password , i cant

Funding

  • You can sponsor this specific effort via a Polar.sh pledge below
  • We receive the pledge once the issue is completed & verified
Fund with Polar
@Issues-translate-bot Issues-translate-bot changed the title add show password in vault add show password in vault Sep 28, 2022
@lietblue
Copy link

lietblue commented Mar 14, 2023

If you want to get your password from the vault.
Here is a temporary walkaround:
You need to get your IV ,salt and encrypted vault at bottom of the config.
Derive your passphrase into the encryption key using Python:

import hashlib
import os

passphrase = "Your passphrase"
salt = "Vault salt"

salt_bytes = bytes.fromhex(salt)

key = hashlib.pbkdf2_hmac("sha512", passphrase.encode(), salt_bytes, 100000)
hex_key = bytes.hex(key[:32])
print(hex_key)

After this you can feed your key into the openssl command below:

cat vault.raw | base64 -d | openssl enc -d -aes-256-cbc \
-K "Your encryption key" \
-iv "Your IV" > vault.json

Reply this commit if you need more help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants