simplify crypto func