Recover SVN password from local cache

Is there a way to recover the password from the local cache? Password must be saved somewhere because I can run

svn co http://my.svn.server/foo 

but I myself lost the password. Do I have reset it or is it possible (and how) to find and decrypt the password? I mainly use CLI SVN on windows, sometimes switching to TortoiseSVN or IntelliJ Idea SVN.

+68
svn password-recovery
May 6 '11 at 11:48
source share
5 answers

On Windows, Subversion stores auth data in %APPDATA%\Subversion\auth . However, passwords are stored in encrypted form, and not in clear text.

You can decrypt them, but only if you log into Windows as the same user for whom auth data was saved.

Someone even wrote a tool to decrypt them. I never tried the tool myself, so I don’t know how well it works, but you can try it anyway:

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

Update: in TortoiseSVN 1.9 and later, you can do this without any additional tools:

Settings Dialog β†’ Saved Data , then click the " Clear... " button to the right of the text " Authentication Data ". A new dialog box appears, in which all saved authentication data is displayed, where you can choose which ones to clear. Instead of clearing, press and hold the Shift and Ctrl buttons, and then double click in the list. The new column is displayed in a dialog box in which the password is clearly displayed.

+126
May 7 '11 at 6:30 a.m.
source share

In ~/.subversion/auth/svn.simple/ you should find a file with a long hexadecimal name. Password is in clear text.

If there is more than one file, you need to find the one that refers to the server that you need the password for.

+44
May 6 '11 at 14:14
source share

For those interested in OS X for applications such as Intelli-J, where authorizations are stored in OSX:

  • Hit CMD + SPACE
  • Enter Keychain
  • Open keychain access
  • In the "Keychains" section on the left, select "login"
  • In the "Category" section on the right, select "All items."
  • In the upper right corner of the search box, enter the host URL (for example, svn.mycompany.com)
  • Your keychain object will show if you want your Mac to remember your credentials.
  • Double-click the item and select the "Show password" checkbox at the bottom of the dialog that appears. You will need to enter your Mac login password to open the password.

Much easier than trying to decrypt the password :-)

+31
Jan 23 '13 at 1:29
source share

Your SVN passwords in Ubuntu (12.04) are located in:

 ~/.subversion/auth/svn.simple/ 

However, in newer versions, they are encrypted, as mentioned earlier. To find gnome-keyring passwords, I suggest you use the gkeyring program.

To install it on Ubuntu - add a repository:

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

Install it:

 sudo apt-get install gkeyring 

And follow these steps:

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

Try using different key identifiers to find a pair matching what you are looking for. Thanks to the camp for soft.

+1
May 23 '14 at 10:41
source share

Just use this decrypter to decrypt the username and password on the local cache.

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

svn decryptor

+1
Apr 6 '17 at 6:05
source share



All Articles