credentials

How to save username and password in GIT?

陌路散爱 提交于 2019-11-26 18:02:23
I want to use a push and pull automatically in GitExtension , without entering my user and password in a prompt, every time. So how can I save my credentials in GIT ? Neetika Run git config credential.helper store then git pull provide a username and password and those details will then be remembered later. The credentials are stored in a file on the disk, with the disk permissions of "just user readable/writable" but still in plaintext. If you want to change the password later git pull Will fail, because the password is incorrect, git then removes the offending user+password from the ~/.git

Retrieve credentials from Windows Credentials Store using C#

你说的曾经没有我的故事 提交于 2019-11-26 16:10:00
I simply want to query the Credentials Store (or Vault as it is called in Windows 8) and get the login data. MSDN is really unhelpful in this case, and I also do not want any C++ P/Invoke approaches. I know that similar questions have been asked here a few times, but none of those solutions work in my case. I do not use Metro App programming, so things like PasswordVault are (as it looks) not available. I just create a simple C# WPF desktop application. Ideally, it should work in several Windows versions, but Windows 8 is preferred. More specifically, I want to query the stored data from the

save PSCredential in the file

一世执手 提交于 2019-11-26 14:22:06
问题 I know I can save password to the file: Read-Host "Enter Password" -AsSecureString | ConvertFrom-SecureString | Out-File $passwordfile and read it from file: $secpasswd = (Get-Content $passwordfile | ConvertTo-SecureString) and then create PSCredential object: $credential = New-Object System.Management.Automation.PSCredential($user, $secpasswd) But can I save $credential in the file, so username and his password were kept together? 回答1: To store and retrieve encrypted credentials easily, use

How do I pass credentials to a machine so I can use Microsoft.Win32.RegistryKey.OpenRemoteBaseKey() on it?

不打扰是莪最后的温柔 提交于 2019-11-26 14:08:22
问题 This .NET API works OK if I'm trying to open the Registry in a machine that's in the same domain as I am (and my logged-on user has admin rights on the target machine). It gets tricky if it's an out-of-domain machine with a different, local administrative user (of whom I do have the password). I tried to use WNetUseConnection() (which has served me well in the past in situations where what I wanted was to read a remote disk file) prior to calling OpenRemoteBaseKey(), but no dice -- I get an

Remove saved credentials from TortoiseGit

为君一笑 提交于 2019-11-26 12:24:53
问题 My credentials are saved in TortoiseGit (using Wincred) but my password changed. The only way for me to pull from the repository now is to remove the Credential Helper. How can I simply change the password? Alternately, can I remove my credentials and save my new ones? 回答1: Normally the invalid credentials should be purged automatically (after one unsuccessful authentication attempt). Go to Control Panel\User Accounts and Family Safety\Credential Manager (another way to get there is to Start-

Encrypting credentials in a WPF application

…衆ロ難τιáo~ 提交于 2019-11-26 12:23:07
问题 In a WPF application, I would like to provide the typical \"Remember Me\" option to remember credentials and use them automatically next time the application is launched. Using a one-way hash is clearly not an option, and while I can store credentials in isolated storage or in the registry, there is one issue to deal with when encrypting the credentials. If I use a symmetric key encryption algorithm, I will need to store the key somewhere. And if the key is, for example, hardcoded in memory,

HttpWebRequest using Basic authentication

老子叫甜甜 提交于 2019-11-26 11:40:29
I'm trying to go through an authentication request that mimics the "basic auth request" we're used to seeing when setting up IIS for this behavior. The URL is: https://telematicoprova.agenziadogane.it/TelematicoServiziDiUtilitaWeb/ServiziDiUtilitaAutServlet?UC=22&SC=1&ST=2 (warning: https!) This server is running under UNIX and Java as application server. This is the code I use to connect to this server: CookieContainer myContainer = new CookieContainer(); HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://telematicoprova.agenziadogane.it/TelematicoServiziDiUtilitaWeb

Get current user's credentials object in Powershell without prompting

女生的网名这么多〃 提交于 2019-11-26 09:45:54
问题 I have a Powershell script that is going to be run through an automation tool against multiple servers. It works fine on Windows machines, as the remote calls use the tool\'s service account without any need for prompting or exposing any credentials in code. This script also runs against Linux machines via SSH using the SharpSSH package. SharpSSH does not automatically use the Powershell user\'s credentials but requires either a username and password, an RSA key file, or a PSCredential object

Externalizing Grails Datasource configuration

拟墨画扇 提交于 2019-11-26 07:27:28
问题 Grails 1.x allows using external configuration files by setting the grails.config.locations directive. Is there a similar approach available for externalizing the database configuration in Datasource.groovy (without setting up JNDI)? It would prove helpful to be able to configure DB credentials in a simple configuration file outside the application. Thanks in advance! 回答1: You can use a properties file specified in the grails.config.locations as a way to externalize the datasource

How do I store and retrieve credentials from the Windows Vault credential manager?

流过昼夜 提交于 2019-11-26 06:25:56
问题 I want to securely store a plaintext password on Windows PC. I am currently using DPAPI CryptProtectData to encrypt it, then store the encrypted blob in a file in user\'s local AppData. In Windows 7, there is Windows Vault, a credential manager (Control Panel\\User Accounts and Family Safety\\Credential Manager) that stores logon data for a variety of logon types, including \"generic credential\". On the surface this looks like the right place for a program to store credentials. However, I