A symmetric encryption implementation in python