anyone here got a function to find is a string is base64 encoded?

Mark Brownell gizmotron at earthlink.net
Sat Jul 24 23:06:28 EDT 2004


on 7/24/04 12:21 PM, Andre Garzia at soapdog at mac.com wrote:

> Hi Folks,
> 
> I am trying to determine if a string is base64 encoded, I don't know in
> advance if it will be or not, but I need to find out so that I can
> decode as needed. Any hint?
> 
> cheers
> andre

Hi Andre,

Is there any chance that a known word or number is present in the string?
You can just go ahead and use base64Decode on it to see if offSet() finds
that known word or number before deciding to use the test decode or not.

Mark



More information about the use-livecode mailing list