Splunk Dev

How to encrypt and decrypt the password and username while connecting to Splunk from Java SDK without hard coding credentials?

brawal0
New Member

I don't want to put hard coded password and user name on connecting to splunk from java sdk. How to encrypt and decrypt the password and user name?

0 Karma

fdswitch
Explorer
0 Karma

musskopf
Builder

Hello Brawal0, this is not much Splunk question as far I understood... but more a Java development thing. Have a look on this topic, it might give you some ideas how to securely store a password in a properties file:
http://stackoverflow.com/questions/1132567/encrypt-password-in-configuration-files

Cheers

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...