public static function tagRequired(string $cipher): bool
    {
        $cipher = strtolower($cipher);

        $needle_tips = [
            '-gcm',
            '-ccm',
        ];

        foreach ($needle_tips as $needle) {
            if (strpos($cipher, $needle)) {
                return true;
            }
        }

        return false;
    }
public static function tagRequired(string $cipher): bool
    {
        $cipher = strtolower($cipher);

        $needle_tips = [
            '-gcm',
            '-ccm',
        ];

        foreach ($needle_tips as $needle) {
            if (strpos($cipher, $needle)) {
                return true;
            }
        }

        return false;
    }
public static function tagRequired ( string $ cipher ) : bool { $ cipher = strtolower ( $ cipher ) ; $ needle_tips = [ '-gcm' , '-ccm' , ] ; foreach ( $ needle_tips as $ needle ) { if ( strpos ( $ cipher , $ needle ) ) { return true ; } } return false ; }
Determines if the provided cipher requires a tag

@param string $cipher
@return bool
Determines if the provided cipher requires a tag