class documentation

class CryptedPasswordRecord(Protocol): (source)

View In Hierarchy

A sequence where the item at index 1 may be a crypted password.

Both pwd.struct_passwd and spwd.struct_spwd conform to this protocol.

Method __getitem__ Get the crypted password.
def __getitem__(self, index: Literal[1]) -> str: (source)

Get the crypted password.