title: Basic Authentication Login in Android
body: <p>First of all: I'm new to programming and this is a school project. </p>
  
  <p>My Problem: I've got a basic login mask using strings to save the users credentials. The credentials, if true, are saved via SharedPrefences. Now I want to compare the users input to the Basic Authentication credentials of my webserver <a href="http://fost19.tk/" rel="nofollow noreferrer">http://fost19.tk/</a> (user: fost19, pw: 12345) to log the user into the app or give him an error message. Everything is working so far, but I'm stuck at connecting to my webserver and comparing the credentials.</p>
  
  <p>I've read some questions on the internet, but to be honest I am completely lost right now, which is the best method to achieve this in the current android build. I'm aware that I need to decrypt the given credentials from my webserver, but I don't know how to do this in Java and I don't know which "plugins" need to be added to my project.</p>
  
  <p>Thanks for your help! :)</p>