codecipher.a1z52n62.encode.encoder module

Module

encoder.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

Creates class encoder with cipher A1z52N62 logic.

class codecipher.a1z52n62.encode.encoder.Encoder(_config: IConfig = <factory>, _strategy: IAlgorithm[IConfig] = <factory>)[source]

Bases: IEncoder

Defines class Encoder with attribute(s) and method(s).

It defines:

attributes:
_config - Configuration parameters for cipher A1z52N62 logic.
_strategy - Strategy for cipher A1z52N62 logic.
_encoded_data - Container for encoded data.
methods:
encoded_data - Property method for getting encoded data.
encode - Encode data by cipher A1z52N62 logic.
_abc_impl = <_abc._abc_data object>
_config: IConfig
_encoded_data: str | None = None
_strategy: IAlgorithm[IConfig]
encode(data: str | None = None) → bool[source]

Encode data by cipher A1z52N62 logic.

Parameters:

data (<Optional[str]>) – Data in string format which should to be encoded | None

Returns:

True (success) | False (fail)

Return type:

<bool>

Exceptions:

None

property encoded_data: str | None

Property method for getting encoded data.

Returns:

Encoded data in string format | None

Return type:

<Optional[str]>

Exceptions:

None