commit local encrypt method.