private static function costDecrypt(string $pack, string $salt, string $pass): int
    {
        // Decrypt the cost value stored in the 32bit int
        $pack = Otp::crypt($pack, ($pass . $salt), self::ALGO);

        // Unpack the value back to an integer and return to caller
        return unpack('N', $pack)[1];
    }