Recover SVN password from local cache

后端 未结 5 1693
既然无缘
既然无缘 2021-01-29 23:05

is there a way to recover a password from local cache? The password has to be stored somewhere because I can run

svn co http://my.svn.server/foo
<
相关标签:
5条回答
  • 2021-01-29 23:12

    On Windows, Subversion stores the auth data in %APPDATA%\Subversion\auth. The passwords however are stored encrypted, not in plaintext.

    You can decrypt those, but only if you log in to Windows as the same user for which the auth data was saved.

    Someone even wrote a tool to decrypt those. Never tried the tool myself so I don't know how well it works, but you might want to try it anyway:

    http://www.leapbeyond.com/ric/TSvnPD/

    Update: In TortoiseSVN 1.9 and later, you can do it without any additional tools:

    Settings Dialog -> Saved Data, then click the "Clear..." button right of the text "Authentication Data". A new dialog pops up, showing all stored authentication data where you can chose which one(s) to clear. Instead of clearing, hold down the Shift and Ctrl button, and then double click on the list. A new column is shown in the dialog which shows the password in clear.

    0 讨论(0)
  • 2021-01-29 23:12

    For those interested in the OS X solution for apps like Intelli-J where authorizations are stored by OSX:

    1. Hit CMD+SPACE
    2. Type "keychain"
    3. Open keychain access
    4. Under "Keychains" on the left, choose "login"
    5. Under "Category" on the right, choose "All items"
    6. At the top right in the search box, type in the the host URL (e.g. svn.mycompany.com)
    7. Your keychain item will show if you chose to have your Mac remember your login credentials.
    8. Double click the item and check the "Show password" checkbox at the bottom of the dialog that pops up. You will have to enter your Mac login to reveal the password.

    Much easier than having to try to decrypt a password :-)

    0 讨论(0)
  • 2021-01-29 23:12

    Your SVN passwords in Ubuntu (12.04) are in:

    ~/.subversion/auth/svn.simple/
    

    However in newer versions they are encrypted, as earlier someone mentioned. To find gnome-keyring passwords, I suggest You to use 'gkeyring' program.

    To install it on Ubuntu – add repository :

    sudo add-apt-repository ppa:kampka/ppa
    sudo apt-get update
    

    Install it:

    sudo apt-get install gkeyring
    

    And run as following:

    gkeyring --id 15 --output=name,secret
    

    Try different key ids to find pair matching what you are looking for. Thanks to kampka for the soft.

    0 讨论(0)
  • 2021-01-29 23:14

    Just use this this decrypter to decrypt your locally cached username & password.

    By default, TortoiseSVN stores your cached credentials inside files in the %APPDATA%\Subversion\auth\svn.simple directory. The passwords are encrypted using the Windows Data Protection API, with a key tied to your user account. This tool reads the files and uses the API to decrypt your passwords

    svn password decryptor

    0 讨论(0)
  • 2021-01-29 23:20

    In ~/.subversion/auth/svn.simple/ you should find a file with a long hexadecimal name. The password is in there in plaintext.

    If there is more than one file you'll need to find that one that references the server you need the password for.

    0 讨论(0)
提交回复
热议问题