This provides a backwards-compatible String#crypt method that will work when String#crypt is deprecated or removed from Ruby.
>= 2.1
Ruby Contributors, Jeremy Evans