our server departement demands encrypt passwords including rails applications. there way encrypt password in database.yml ms sql server? , how can in rails?
you can use crypto gem
encrypted_password = crypto.encrypt(password, 128_character_key, 128_character_iv)
to decrypt use
password = crypto.decrypt(encrypted_password,same_key,same_iv)
Comments
Post a Comment