[Gambas-user] Base 64 question

Fabien Bodard gambas.fr at ...626...
Fri Apr 29 13:59:53 CEST 2011


Le 29 avril 2011 13:57, Benoît Minisini <gambas at ...1...> a écrit :
>> 2011/4/28 Caveat <Gambas at ...1950...>:
>> > xml.Decode...pfft!  Funny, I never would have thought to look in gb.xml
>> > for a base64 decoder!
>>
>> true ... i've found it in the past when i've made a little program to
>> extract mail attachement in old mail directories
>>
>
> Maybe encoding & decoding BASE64 should be standard in Gambas? I can do the
> same remark for URL encoding & decoding functions located in gb.web at the
> moment.
>
> I just have to find good names for the functions...
>
>        ToBase64$()
>        ToUrl$()
>        FromBase64$()
>        FromUrl$()
>
> Or two generic functions like Conv$(). Encode() and Decode() with a code
> argument: gb.Base64, gb.URI...
>
> They won't match Shell$(), Quote$(), Unquote$(), Html$(). But maybe it's not
> that important.
>
> If people are aware of other useful encoding/decoding functions, they should
> tell now.

md5 ?


>
> --
> Benoît Minisini
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today.  Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fabien Bodard




More information about the User mailing list