Authentication device

This module detects potential "authentication devices", typically USB keys which can store the owner's authenticator.

wacryptolib.authdevice.list_available_authdevices()

Generate a list of dictionaries representing mounted partitions of USB keys.

Return type:

list

Returns:

list of dicts having at least these fields:

  • "device_type" (str): device type like "USBSTOR"

  • "partition_label" (str): possibly empty, label of the partition

  • "partition_mountpoint" (str): mount point of device on the filesystem.

  • "filesystem_format" (str): lowercase character string for filesystem type, like "ext2", "fat32" ...

  • "filesystem_size" (int): filesystem size in bytes

  • "authenticator_dir" (Path): Theoretical absolute path to the authenticator (might not exist yet)