passwordler._internals
Module Contents
Functions
|
Generate a key map for encryption or decryption. |
Attributes
- passwordler._internals.accented_chars = ['á', 'à', 'â', 'ä', 'ã', 'å', 'æ', 'ç', 'é', 'è', 'ê', 'ë', 'í', 'ì', 'î', 'ï', 'ñ', 'ó', 'ò',...
- passwordler._internals.string_builtin_chars
- passwordler._internals.original
- passwordler._internals.getKeyMap(shuffled, isDecryption=False)[source]
Generate a key map for encryption or decryption.
This function creates a mapping between characters of the original character set and a shuffled version. It can be used for both encryption and decryption depending on the ‘isReverse’ flag.
Parameters: shuffled (list): The shuffled list of characters. isReverse (bool): Flag to indicate if the mapping is for decryption (True) or encryption (False).
Returns: dict: A dictionary mapping each character of the original set to the shuffled set or vice versa.