Basic Authentification with simple json Backend

Hello,

I’m developping a custom backend for my grafana application, using the simple json plugin.
I would like use the basic authentification to secure my backend.

The user/password are transformed in a hash in the header in the field “Authorization”.

Is there a way to compute this hash to handle security in my backend ?

Thank you for your response