codecipher.vigenere.decode module

Module

decode.py

Copyright

Copyright (C) 2021 - 2024 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 VigenereDecode with attribute(s) and method(s). Creates decode class with backend API.

class codecipher.vigenere.decode.VigenereDecode(_decode_data: str | None)[source]

Bases: object

Defines class VigenereDecode with attribute(s) and method(s). Creates decode class with backend API.

It defines:

attributes:
_decode_data - Data decode container.
methods:
decode_data - Property methods for decode data.
_split_data - Splitting data for decoding.
decode - Decode data from Vigenere format.
_decode_data: str | None
_split_data(data_to_decode: str | None, key: str | None) List[str][source]

Splitting data for decoding.

Parameters:
  • data_to_decode (<str> | <NoneType>) – Data which should be decoded | None

  • key (<str> | <NoneType>) – Key for decoding | None

Returns:

List with data for decoding

Return type:

<List[str]>

Exceptions:

None

decode(data_to_decode: str | None, key: str | None) None[source]

Decoding data from Vigenere format.

Parameters:
  • data_to_decode (<str> | <NoneType>) – Data which should be decoded

  • key (<str> | <NoneType>) – Key for decoding

Returns:

None

Exceptions:

None

property decode_data: str | None

Property method for getting decode data.

Returns:

Decode data in str format | None

Return type:

<str> | <NoneType>

Exceptions:

None