Easiest way to detect if a string is base64 encoded or not?

You should be able to use a pattern match step with RegEx followed by a decision step that has a path for each encoded / not encoded

Identify Base64 Encoding RegEx ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$

1 Like