encryption added

needs testing