title: Spring 5 , basic Authentication and base64 password Encoder
body: <p>I use <strong>spring 5</strong> in all my projects.
  I want to add a basic auth with only one secret/login for one endpoint.
  (just for remember, a basic auth is based on request who use to authentify an header &quot;<code>Authorization : Basic ${encryptedInBase64('login:password')}</code>&quot;)</p>
  <p>My issue is, the basic auth initialized by spring-web encrypt the login:secret using a base64 encoder</p>
  <p>BUT</p>
  <p>spring security don't propose anymore base64 password encoder anymore &quot;because the encryption level is too low&quot;</p>
  <p>A quick fix would be</p>
  <ol>
  <li>use the deprecated <strong>Md4PasswordEncoder</strong>, who encode/decode in base64</li>
  <li>implement my own &quot;MtBase64PasswordEncoder&quot; class, who do the same.</li>
  </ol>
  <p>But neither of them seems clean.</p>
  <p><strong>So my question is</strong> : what is the clean way to do a connection with a basic auth between two spring 5 projects? How does spring expect us to do basic auth?</p>