static public function sanitizeInjectively($string) {
        $sanitized = '';
        foreach (str_split($string) as $char) {
            $sanitized .= isset(self::$ALLOWED_CHARACTERS[$char]) ? $char : '='.base64_encode($char);
        }
        return $sanitized;
    }
static public function sanitizeInjectively($string) {
        $sanitized = '';
        foreach (str_split($string) as $char) {
            $sanitized .= isset(self::$ALLOWED_CHARACTERS[$char]) ? $char : '='.base64_encode($char);
        }
        return $sanitized;
    }
static public function sanitizeInjectively ( $ string ) { $ sanitized = '' ; foreach ( str_split ( $ string ) as $ char ) { $ sanitized .= isset ( self :: $ ALLOWED_CHARACTERS [ $ char ] ) ? $ char : '=' . base64_encode ( $ char ) ; } return $ sanitized ; }
Sanitize a string using an injective function
to prevent collisions

@param string $key
@return string
Sanitize a string using an injective function to prevent collisions