Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Base64 code source code
Message
 
À
17/11/1999 21:49:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00292257
Message ID:
00292259
Vues:
16
>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
Fil
Voir

Click here to load this message in the networking platform