credentials

PowerShell - Get-Credential decode password?

巧了我就是萌 提交于 2019-12-03 22:09:29
I want to use the Get-Credential cmdlet in my code. How is is possible to decode the password easily back from the System.Security.SecureString format? (I must use the password in clear text format at one part in my code) $credential = Get-Credential $credential.Password | ConvertFrom-SecureString $credential #How to show password in text format? My workaround, but I think there is also a normal way $credCachePS = New-Object System.Net.CredentialCache $credCachePS.Add("uridummy", "NTLM", $credential) $credCachePS | select Password This is what I use ( though this makes it insecure, but I think

Set Proxy Credential in Web Browser Control

ぐ巨炮叔叔 提交于 2019-12-03 21:52:01
I am working on a legacy code where an application uses AxSHDocVw.AxWebBrowser ( not System.Windows.Forms.Control ) to open up web pages and am extending it to take proxy into considerations. I have following example on http://www.pinvoke.net/default.aspx/wininet/internetsetoption.html to use InternetSetOption() to go through specified proxy and tested that it works. Now the hurdle is I tried everything but failed to pass username and password with following code: //-- Set Proxy Username bool resultF = InternetSetOption(IntPtr.Zero, INTERNET_OPTION_PROXY_USERNAME, username, username.Length+1);

git-credential-winstore prompt does not work with self hosted repositories

两盒软妹~` 提交于 2019-12-03 18:48:27
问题 git-credential-winstore works perfect with github and bitbucket repositories, but the prompt does not pop up while working with self hosted repositories. I can' t see what the problem is. I' ve tried : git config --global credential.helper winstore via console [credential] helper = winstore in gitconfig and created and stored the credentials manualy. Without success. Can anyone point me to te right direction please? Im using Win7. Best regards. 回答1: Copy git-credential-winstore.exe into C:

Remove 'credential-osxkeychain'

天涯浪子 提交于 2019-12-03 17:20:22
问题 I tried adding 'credential-osxkeychain' I followed these steps, but it has not installed correctly. I no longer want it. How can I stop git from calling it (when I do a pull)? Thank you! git pull git: 'credential-osxkeychain' is not a git command. See 'git --help'. Username for 'https://github.com': jzone3 Password for 'https://jzone3@github.com': git: 'credential-osxkeychain' is not a git command. See 'git --help'. 回答1: I ended up deleting osxkeychain from the config file. git config -

runas /savecred… don't accept cmdkey /add (credentials)

蹲街弑〆低调 提交于 2019-12-03 17:13:39
I have a problem with runas /savecred ... and cmdkey /add.... I have a batch file contains this line: runas /profile /savecred /user:MyDomain\MyUserName "MyProgram.exe" I'm logging to my computer as Administrator and I want to execute MyProgram.exe with another user: MyUserName. When I launch my batch file the firt time, it prompts for password for MyUserName, I type the password and it works nice !!! For second time, it don't ask for password because /savecred has saved MyUserName and password in Windows Credential. cool !! The information in Credential Manager Internet or network adress:

Authentication with Node/Express/Socket.IO

不打扰是莪最后的温柔 提交于 2019-12-03 16:55:19
I have a node/socket.io/express server that's connected to a HTML file (like so ). So visiting the web address connects you to the server. I am trying to set up a system where by, said server is being run on multiple computers at a time and by way of some sort of username and password authentication, visiting the webpage with specific credentials connects you to one of the computers with those same credentials running the server. Ive seen mention of "Redis" from previous similar questions but they are pretty old and im wondering if there is a newer or better way of achieving this. You won't

Invoke Powershell command from C# with different credential

℡╲_俬逩灬. 提交于 2019-12-03 16:38:03
I need to execute a couple of powershell command from C#, and I'm using this code Runspace rs = RunspaceFactory.CreateRunspace(); rs.Open(); PowerShell ps = PowerShell.Create(); ps.Runspace = rs; ps.AddCommand("Add-PSSnapin").AddArgument("Citrix*"); ps.Invoke(); // other commands ... This works correctly but now a user without sufficient rights to use powershell should execute this application. Is there a way to execute powershell code with different credentials? I mean something like this var password = new SecureString(); Array.ForEach("myStup1dPa$$w0rd".ToCharArray(), password.AppendChar);

Where to store database credentials in a web app?

你。 提交于 2019-12-03 15:41:57
问题 I'm wondering what techniques you use to store the database credentials for your application. I'm specifically concerned with java webapps, but I don't think there's any need to limit the questions to that. things to consider: Do you use property files,xml configs, other? Is it bundled into your application(ie in a jar file) or stored seperately on the file system somewhere? Is the password encrypted? If so, what encryption scheme do you use? 回答1: Since you're leaving the question open to

Influencing whether browsers prompt to save credentials

那年仲夏 提交于 2019-12-03 12:42:12
For most web pages that have a username and password dialog, browsers will prompt the user if they want to save the credentials for that form: However, for this login page , it doesn't. I can't find any good data on how IE makes the decision whether to present this dialog. How to get IE to show that prompt - assuming no user settings trump it? My guess is that since the page is in HTTPS mode IE is not allowing autocomplete to execute because the page has indicated that HTTP caching should not be allowed. Or the form is being submitted with Javascript. See this article for more details. http:/

Play Services Hint Request cannot display phone numbers when requested

二次信任 提交于 2019-12-03 11:58:55
问题 When using the code from google's sms retriever api to first grab the device's phone number, the dialog is shown with a loading spinner, then quickly disappears. In onActivityResult, the resultCode is 1002 and the intent is empty. No documentation for this error code exists. The exact code I'm using is email.setOnClickListener(v -> { HintRequest hintRequest = new HintRequest.Builder().setHintPickerConfig(new CredentialPickerConfig.Builder().setPrompt(0).build())