codecipher.vigenere.key_generator module¶
- Module
key_generator.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 KeyGenerator with attribute(s) and method(s). Creates key generator class for Vigener encoding/decoding.
- class codecipher.vigenere.key_generator.KeyGenerator(_data_len: int | None, _key: str | None)[source]¶
Bases:
object
Defines class KeyGenerator with attribute(s) and method(s). Creates key generator class for Vigener encoding/decoding.
It defines:
- attributes:
- _data_len - Data length._key - Key for encoding/decoding.
- methods:
- data - Property methods for data length.key - Property methods for key.generate_key - Generates key for encoding/decoding.
- _data_len: int | None¶
- _key: str | None¶
- property data_len: int | None¶
Property method for getting data length.
- Returns:
Data length | None
- Return type:
<int> | <NoneType>
- Exceptions:
None
- property key: str | None¶
Property method for getting key.
- Returns:
Key for encoding/decoding | None
- Return type:
<str> | <NoneType>
- Exceptions:
None