Ruby string-methods reference.
Encrypts a string using POSIX crypt(3) with a salt. Deprecated in Ruby 2.5+ — use string-crypt gem instead.
str.crypt(salt_str)