VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Authenticate via HTTP 401, digest calculator (You have no idea how long this took to work out

Jon Barker  (11 Submissions)   Internet/HTML   Visual Basic 3.0   Advanced   Wed 3rd February 2021

This code takes into account the NONCE, CNONCE, NONCE-count, Username, Password, HTTP Method, URi, realm......... and finally QOP type :)
THIS CODE IS FOR WEB DEVELOPERS WHO WISH TO AUTHENTICATE VIA HTTP, AND KNOW WHAT ALL OF THE ABOVE ARE... (if you dont, i suggest you stop reading now :)

API Declarations
'IF YOU DO NOT HAVE THE MD5 DLL, GET IT HERE:
'http://www.esquadro.com.br/md5bas.zip

Private Declare Sub MDFile Lib "aamd532.dll" (ByVal f As String, ByVal r As String)
Private Declare Sub MDStringFix Lib "aamd532.dll" (ByVal f As String, ByVal t As Long, ByVal r As String)
Public Function MD5String(KeyAndPass As String) As String
Dim r As String * 32, t As Long
r = Space(32)
t = Len(KeyAndPass)
MDStringFix KeyAndPass, t, r
MD5String = r
End Function

Rate Authenticate via HTTP 401, digest calculator (You have no idea how long this took to work out (4(4 Vote))
Authenticate via HTTP 401, digest calculator (You have no idea how long this took to work out.bas

Authenticate via HTTP 401, digest calculator (You have no idea how long this took to work out Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters