[python]Hand made cryptography with XOR method.

ord function is to convert a character to its equivalent integer representation. chr function is to convert the integer to its character representation. random.choice() method randomly picks a character from a series of characters to form a string of N length, this is the key for encryption and decryption. A message is taken from user's … Continue reading [python]Hand made cryptography with XOR method.

[python]ASCII to integer and vice versa

There are two functions in python which can convert the ascii to the integer equivalent and vice versa. To convert ascii character to integer representation use ord(), to convert integer to ascii representation use chr(). Example: Result [104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100, 33] hello world!