Andrew Guts wrote:
> Hi all,
>
> I am porting an old CGI application to JSP/servlets. I need to port user
> authentication code also. But getHeader("authorization") returns encoded
> string like "Basic YW5kcmV3Og==". How to get original value like
> USER:PASSWORD ?
>
> Thanks ahead
>
> Andrew
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Hmm...
If I remember right (and I probably don't ;-) this information
is encoded in Base64. All you need to do is run the
'YW5kcmV3Og==' stuff through a decoder.
-CA
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>