Pages

Showing posts with label crypto. Show all posts
Showing posts with label crypto. Show all posts

Saturday, December 14, 2013

Python: Working with ASCII

Converting text to ASCII and ASCII to text can be done with ease by python.

Conversion from Text (single character) to ASCII can be done by ord() function and the reverse by chr() function

Example:
>>> ord("A")
65
>>> chr(65)
'A'
>>> ord(":")
58
>>> chr(77)
'M'