change encypt method name to avoid osx conflict