This entry guides you through on using the encryption feature in Ambience/Repertoire v202x.
On Linux Environment:
For Ambience 202x
- Open a command line console & navigate to /Ambience-202x/bin of your Ambience installation path.
- Execute the command below:
./ambience-cli encrypt <your-secret-key>
For Repertoire 202x
- Open a command line console & navigate to /Repertoire-202x/bin of your Repertoire installation path.
- Execute the command below:
./repertoire-cli encrypt <your-secret-key>
On Windows Environment:
For Ambience 202x
- Open a command line console & navigate to /Ambience-202x/bin directory of your Ambience installation path.
- Execute the command below:
ambience-cli.bat encrypt <your-secret-key>
For Repertoire 202x
- Open a command line console & navigate to /Repertoire-202x/bin directory of your Repertoire installation path.
- Execute the command below:
repertoire-cli.bat encrypt <your-secret-key>
- Output Example, (using mypassword as a plain text password example.)
./ambience-cli encrypt mypassword
mypassword = {enc:elx-2.0}1aaafeF9iFTAgrLlNpsjSfbbbwWo=
- For plain-text password with special characters, we strongly advise encrypting the whole MongoDB connectionString instead. Example as shown below:
connectionString = “mongodb://admin:ab@cd$@localhost:27017”
./ambience-cli encrypt "mongodb://admin:ab@cd$@localhost:27017"
Output will be as follows:
mongodb://admin:ab@cd$@localhost:27017 = {enc:elx-2.0}fxxfGHDkxxxOGdxxxwVWRo=
Additional Notes
- Encrypting the same input will produce a different output each time.
- To include in spaces in your secret key, do wrap up the entire key with double quotes (" ") which would not be considered part of the key.
- For further details, do view the following post: Encrypting using Ambience/Repertoire 202x - #2 by jpriddey