General information
Category:
Internet applications
>I need to decode the authorization string that I get back as a result of a Authentication process with netscape enterprise server.
>
>Would any of you happen to have some source code that would decode that string (which is encoded -> base64)?
>
>I don't want to use a third party component.
>
>source in VFP or VB would be nice.
Here is some code from JK. It can be converted to use with base64
++++++++++
*** Convert From Hex to Dec
PROCEDURE HexToDec
LPARAMETERS cHexValue
LOCAL nDecValue,i
nDecValue=0
FOR i = 1 TO LEN(cHexValue)
nDecValue=nDecValue+((AT(SUBSTR(cHexValue,i,1),"0123456789ABCDEF")*(i-1))
ENDFOR
RETURN nDecValue
++++++++++
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only