Refactored and implemented symmetric encryption.