4
我们的服务器部门要求加密包括所有Rails应用程序的所有密码。 有没有办法在MS SQL Server的database.yml中加密密码? 我该如何在Rails中做到这一点?Rails加密SQL Server数据库database.yml中的数据库密码
我们的服务器部门要求加密包括所有Rails应用程序的所有密码。 有没有办法在MS SQL Server的database.yml中加密密码? 我该如何在Rails中做到这一点?Rails加密SQL Server数据库database.yml中的数据库密码
您可以使用Crypto gem为
encrypted_password = Crypto.encrypt(password, 128_character_key, 128_character_iv)
要解密使用
password = Crypto.decrypt(encrypted_password,same_key,same_iv)
好,所以答案应该不仅仅包括一个链接更多。 –
https://github.com/itay-grudev/encryption其他宝石 –