def get_public_key_fingerprint(key_path):
    if not key_path:
        key_path = get_default_ssh_key_path()

    try:
        public_key = open(key_path).read()
    except __HOLE__:
        return None

    key = base64.b64decode(public_key.strip().split()[1].encode('ascii'))
    fp_plain = hashlib.md5(key).hexdigest()
    return ':'.join(a + b for a, b in zip(fp_plain[::2], fp_plain[1::2]))
dataset/ETHPy150Open cloudControl/cctrl/cctrl/keyhelpers.py/get_public_key_fingerprint