Added new crypto functions