def get_passphrase(prompt="Enter passphrase: ", defaultPass=None):
    passwd = getpass(prompt)
    while not len(passwd):
        if defaultPass:
            passwd = defaultPass
        else:
            passwd = getpass("  You must enter a passphrase: ")
    return passwd
Prompt for a passphrase, allowing pre-populated *defaultPass*.
dataset/ETHPy150Open ryran/ravshello/rav-notify.py/get_passphrase