Change encypt method name to avoid osx conflict

The encrypt method name conflicts with encrypt from `/usr/include/unistd.h`. Simply changing the method name resolves the issue.