The following command line options instruct GenRocket to encrypts a file into GenRocket's supported encryption. Once a file has been encrypted, it will end with .gref (.gref => GenRocket Encrypted File). When the GenRocket reads a file ending in .gref it will automatically unencrypt the file once loaded in the computer's memory. To learn more, go to How do I encrypt my database connection files?
-ef <rawFile> --encrypt-file <rawFile>
- <rawFile> - the location and name of the file to be encrypted.
Example Raw File Being Encrypted
The config.properties file is encrypted to config.properties.gref (your runtime version numbers may be different).
~/Downloads $ genrocket -ef /Users/jdoe/Acme/resource/config.properties
GenRocket Runtime belongs to https://app.genrocket.com
GenRocket Runtime Version: 3.5.30
GenRocket Version: 188.8.131.52
GenRocket Engine Version: 184.108.40.206
GenRocket Generator Runtime Version: 220.127.116.11
GenRocket Receiver Runtime Version: 18.104.22.168
GenRocket GRepositoryClient Runtime Version: 22.214.171.124
GenRocket GRepositoryServer Runtime Version: 126.96.36.199
A copy of your file has been encrypted to config.properties.gref at path /Users/jdoe/Acme/resource