I have a private key which I would like to encrypt so that storing it locally is safer. I would like to use the commonly used encryption method so that I can decrypt the result with the available tezos client packages. Is there a tool that can do this for me? I can see a lot of info about decrypting, which pytezos can do for example, I want to do the opposite.


1 Answer 1


This may answer your question: https://tezos.stackexchange.com/a/334/318

from pytezos.crypto import Key

 # edesk1GztKe2KkTsWBB1DbnAjxS7hMFrffHLgUnxRcqtjw3o8oHVqnS1RuesZremQ9GYnNKrETSiRh4WWSu5hibT
  • I want to encrypt a key, not decrypt it. Wouldn't this do the opposite of that I want?
    – PEC
    May 6, 2022 at 11:57
  • Copied the wrong example. Updated my answer. May 6, 2022 at 15:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.