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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...