Utility Module
- Taipower.utility.get_random_key(bytes: int) str[source]
Generate a random key from a list of characters.
- Parameters:
bytes (int) – The number of bytes of the key.
- Returns:
Random key.
- Return type:
str
- Taipower.utility.des_encrypt(plain_text: str)[source]
Encrypt text with a random key using Triple DES.
- Parameters:
plain_text (str) – Text to be encrypted.
- Returns:
Encrypted text.
- Return type:
str