Logstash JDBC input : Encrypted username and password

Please help how I can use encrypted username and password in logstash config files rather than hard coding in input section.

Is there any way that I can read the parameters from an external file.

https://www.elastic.co/guide/en/logstash/current/keystore.html