some common functions regarding password moved to com.walbrix._