codecipher.a1z52n62.encode.encode_algorithm module¶
- Module
encode_algorithm.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 class EncodeAlgorithm with default cipher A1z52N62 implementation.
- class codecipher.a1z52n62.encode.encode_algorithm.EncodeAlgorithm[source]¶
Bases:
IAlgorithm[IConfig]Defines class EncodeAlgorithm with attribute(s) and method(s).
It defines:
- attributes:
- _config - Configuration parameters for cipher A1z52N62.
- methods:
- __init__ - Initializes EncodeAlgorithm constructor.encoded_data - Property method for getting encoded data.encode - Execute cipher A1z52N62 logic.
- _abc_impl = <_abc._abc_data object>¶
- execute(data: str | None = None, config: IConfig | None = None) str | None[source]¶
Execute cipher A1z52N62 logic.
- Parameters:
data (<Optional[str]>) – Data in string format which should to be encoded | None
config (<Optional[IConfig]>) – Configuration for cipher | None
- Returns:
Encoded data in string format (success) | None (fail)
- Return type:
<Optional[str]>
- Exceptions:
None