Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Thanks! After I enter "AB" it prompts for the algorithm and then when I enter "rsa" (whether bare or in single or double quotes) it says Traceback (most recent call last): File "keychanger.py", line 44, in <module> import hashlib, time, subprocess, uuid, pathlib ImportError: No module named pathlib
    – tell
    Commented Apr 25, 2021 at 13:40
  • What version of Python are you using? Pathlib is in version 3.4 and later. I tested this on Windows with Python 3.8 from the Microsoft Store and that worked. Commented Apr 25, 2021 at 18:29
  • If you can't get it to work and can't install a later version of Python you can edit the script and delete , pathlib from the import line and also delete the last two lines in the script (that's the only place pathlib is used). All that will happen is it won't automatically delete the two file created when the keys were exported. You can delete those files manually, and they're easy to identify because they have a long UUID for a filename. Commented Apr 25, 2021 at 18:47
  • @tell Try the code here: pastebin.com/9cDt5dAd Commented Apr 26, 2021 at 0:35