Does anyone know of a jQuery plugin that can check if text is base64 encoded by chance? I want to be able to decode base64 strings but only if the string is encoded to begin with. I see several scripts out there that can encode and decode but I really one that can check if the string is encoded.
Does such a thing exist?
Must it really be a jQuery plugin? Just use a simple JavaScript regex match:
The regex pattern is taken from this question: RegEx to parse or validate Base64 data.