def process_passphrase(proc, passphrase, double_take=False):
    """
    This will enter the `passphrase` interactively given the pexpect child program, `proc`.
    """
    proc.expect('Enter passphrase:\r\n')
    proc.sendline(passphrase)
    if double_take:
        proc.expect('Repeat the passphrase:\r\n')
        proc.sendline(passphrase)
        proc.expect('\n')
