codecipher.a1z52n62.config module

Module

config.py

Copyright

Copyright (C) 2021 - 2026 Vladimir Roncevic <elektron.ronca@gmail.com> codecipher is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. codecipher is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Info

Defines configuration for cipher A1z52N62 logic.

class codecipher.a1z52n62.config.A1z52N62Config(key: str | None = None, shift: int = 0, upper_case_offset: int = 64, lower_case_offset: int = 96, lower_case_base: int = 27, numeric_base: int = 53, alphabet_size: int = 26, code_splitter: str | None = ' - ', altchars: bytes | None = None, padding: bool = False, allowed_chars: Set[str] | None = <factory>, lookup_table: Dict[str, str] | None=None)[source]

Bases: IConfig

Defines class A1z52N62Config with attribute(s).

It defines:

attributes:
key - Controls transformation during encoding and decoding (default None).
shift - Controls transformation during encoding and decoding (default 0).
upper_case_offset - Offset for uppercase letters (default 64).
lower_case_offset - Offset for lowercase letters (default 96).
lower_case_base - Base index for lowercase letters (default 27).
numeric_base - Base index for numeric characters (default 53).
alphabet_size - Size of alphabet (default 26).
code_splitter - Code splitter (default ‘ - ‘).
altchars - Defines replacements for ‘+’ and ‘/’ (default None).
padding - Adds to end ‘=’ (default False).
allowed_chars - Strict set of allowed characters (default ascii_lowercase + ascii_uppercase + digits + whitespace).
lookup_table - Lookup table for cipher set (default None).
methods:

None

_abc_impl = <_abc._abc_data object>
allowed_chars: Set[str] | None
alphabet_size: int = 26
altchars: bytes | None = None
code_splitter: str | None = ' - '
key: str | None = None
lookup_table: Dict[str, str] | None = None
lower_case_base: int = 27
lower_case_offset: int = 96
numeric_base: int = 53
padding: bool = False
shift: int = 0
upper_case_offset: int = 64