def encrypt(plaintext: str, key: str) -> str:
    """Encrypts plaintext using key according to the one-time-pad algorithm."""
    return "".join(chr(ord(p) ^ ord(k)) for (p, k) in zip(plaintext, key))