HttpWebRequest using Basic authentication

You can also just add the authorization header yourself. Just make the name “Authorization” and the value “Basic BASE64({USERNAME:PASSWORD})” var username = “abc”; var password = “123”; string encoded = System.Convert.ToBase64String(Encoding.GetEncoding(“ISO-8859-1”) .GetBytes(username + “:” + password)); httpWebRequest.Headers.Add(“Authorization”, “Basic ” + encoded); Edit Switched the encoding from UTF-8 to ISO 8859-1 per What encoding should I … Read more

What is the most appropriate way to store user settings in Android application

In general SharedPreferences are your best bet for storing preferences, so in general I’d recommend that approach for saving application and user settings. The only area of concern here is what you’re saving. Passwords are always a tricky thing to store, and I’d be particularly wary of storing them as clear text. The Android architecture … Read more

Remove credentials from Git

If this problem comes on a Windows machine, do the following. Go to Credential Manager in German, it is called: Anmeldeinformationsverwaltung in French, it is called: Gestionnaire d’identification in Polish, it is called: Menedżer poświadczeń in Portuguese, it is called: Gerenciador de Credenciais in Russian, it is called: Диспетчер учётных данных in Spanish, it is … Read more

How can I save username and password in Git?

Attention: This method saves the credentials in plaintext on your PC’s disk. Everyone on your computer can access it, e.g. malicious NPM modules. Run git config –global 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, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)