def is_encrypted(path):
 if path.startswith('/dev/mapper'):
  return path.rpartition('/')[2].endswith(_dmcrypt_suffix)
 else:
  return False

def is_encrypted ( path ) : if path . startswith ( '/dev/mapper' ) : return path . rpartition ( '/' ) [ 2 ] . endswith ( _dmcrypt_suffix ) else : return False
test if this is vault encrypted data blob :arg data: a byte or text string to test whether it is recognized as vault encrypted data :returns: true if it is recognized .