Our server department requires encryption of all passwords, including all Rails applications. Is there a way to encrypt a password in database.yml for MS SQL Server? And how can I do this in Rails?
You can use crypto gem for this.
encrypted_password = Crypto.encrypt(password, 128_character_key, 128_character_iv)
To decrypt use
password = Crypto.decrypt(encrypted_password,same_key,same_iv)
Source: https://habr.com/ru/post/1491412/More articles:How to deal with the verbosity of NSLayoutConstraint in code? - iosUIATarget.onAlert = onAlert function (warning) Problem - Script doesn't seem to work correctly - automationNo Java based IDE? - phpPascal "var parameter" in Python - pythonhow to extract a specific word from a string in Postgres - sqldisplay error on nexus 4 - androidHow is a revision related to a property branch after a merge? - gitDocumentation for .NET REST API with NancyFx - restHow to record release history for a web project in Git? - gitSQL Command Line Error - mysqlAll Articles