Information générale
Catégorie:
Applications Internet
>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
++++++++++
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement