import random


def create_recovery_secret_part(nblocks=3):
    """Create a random password for recovering an identity.

    >>> secret = create_recovery_secret_part(3)
    >>> len(secret)
    14
    """
    letters = "0123456789ABCDEFGHJKLMNPQRSTUVWXabcdefghijkmnopqrstuvwx"
    delimiters = "-=.+"
    pw = ""
    for i in range(nblocks*4):
        if i % 4 == 0 and i != 0 and i != nblocks*4:
            pw += random.choice(delimiters)
        pw += random.choice(letters)
    return pw