def tidy_passphrase(passphrase: str) -> str:
    """
    Perform any string processing we want to apply to the entered passphrase.
    Currently we strip leading/trailing whitespace.
    """
    return passphrase.strip()