made cryptographic functions more secure