Added password crypto functions