The password can be encrypted using the as-admin command below. Just copy the output to start the agent.
create | define safe_password for (identity | authentication)
Example:
<as-admin> as-admin> define safe_password for identity
Password:
Verifying - Password:
Safe password: #SAFE#3f0bIRWKll8FCFEPhBiGQBbZhF6PC+B9e3ux/F+cGCrsU2TbP0j4AcMoqa2ZFnPRXx
as-admin timestamp: [2015-10-28T16:44:20]
Include all parameters in double quotes, otherwise Unix will interpreter the special characters.
start as-agent:
java -jar as-agent.jar -identity_password "#SAFE#3f0bIRWKll8FCFEPhBiGQBbZhF6PC+B9e3ux/F+cGCrsU2TbP0j4AcMoqa2ZFnPRXx" -metaspace "<metaspacename>" -security_policy "<policy-file>" -listen "<listenURL>" ...