module WolfCore::StringUtils

def base64_encoded?(str)

def base64_encoded?(str)
  return false unless str.is_a?(String) && str.length % 4 == 0
  base64_regex = %r{^[A-Za-z0-9+/]+={0,2}$}
  str.match?(base64_regex)
end