hi i need this code in ruby I don't know how I write the crypt.crypt method in ruby, any ideas?
(I want to simulate the linux comand .htpasswd)
import random
import crypt
letters = 'abcdefghijklmnopqrstuvwxyz' \
'ABCDEFGHIJKLMNOPQRSTUVWXYZ' \
'0123456789/.'
salt = random.choice(letters) + random.choice(letters)
password = "bla"
print crypt.crypt(password, salt)