encrypt finish
4.0 API refactor