WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Core_Util::xorStrings() public WP 1.0

Calculate $a ^ $b for two strings.

{} It's a method of the class: ParagonIE_Sodium_Core_Util{}

No Hooks.

Return

String.

Usage

$result = ParagonIE_Sodium_Core_Util::xorStrings( $a, $b );
$a(string) (required)
-
$b(string) (required)
-

Code of ParagonIE_Sodium_Core_Util::xorStrings() WP 5.8.2

public static function xorStrings($a, $b)
{
    /* Type checks: */
    if (!is_string($a)) {
        throw new TypeError('Argument 1 must be a string');
    }
    if (!is_string($b)) {
        throw new TypeError('Argument 2 must be a string');
    }

    return (string) ($a ^ $b);
}