Author Archives: Kiprono Koech

AES Encryption and Decryption in Python [64, 128, 256]

Advanced Encryption Standard (AES) is a powerful and trustworthy cryptographic encryption tool to secure digital data. It accepts three key lengths – 128, 192, and 256 bits (16, 24 and 32 bytes, respectively).

AES cipher is abbreviated using the key length. For example, an AES cipher using a 256-bit key is abbreviated as AES 256. The longer the key, the more secure the system. Therefore, the rule of thumb is to use a 256-bit key.

Continue reading

Convert CSV to UTF-8 in Python

This article involves the conversion of a CSV file into a UTF-8 encoding. This encoding supports over 1.1 million characters using 1 to 4-byte code units. This means the UTF-8 system can encode most of the characters you know in any language.

UTF-8 is the default encoding for Linux, Windows, and macOS. That means these OS systems will always support storing data in this encoding.

This article is for you if you need to convert a CSV file encoded in a different format into UTF-8.

Continue reading