add common string crypto functions