implemented symmetric encryption