Changed encryption method to make the system more secure