fixed SBM encrypt