Jump to content

Recommended Posts

Posted

@BigDaddyO, Nice solution. But you need username and password to access to your db?

Posted

Sorry, but I have to disagree: Encrypting passwords in a script together with the information required for decryption is obfuscation, not security.

 

Suggestion: Use the keepass CLI (kpscript), there is an UDF by @seadoggie01 available, never worked with it, just as a start:
 

 

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Posted
5 hours ago, cramaboule said:

@BigDaddyO, Nice solution. But you need username and password to access to your db?

nope, access is by Active Directory so no mater what laptop or citrix box I'm logged into I can access the database.  So, this solution only works if you are in a corporate world.

Posted
On 8/26/2025 at 1:55 AM, cramaboule said:

thanks... it is good if you prompt with inputbox... but in my case it is silent running script... thus making somehow clear and encrypted

 

I suggest storing the passwords in ini files, or a database hashed with a salt, which is dynamically generated at creation for each login device. If the switches belong to different legal entities, then there should be an ini file or database per entity. If you are not using an SQL database with security e.g. SQLite, ini file then for extra  obfuscation you can covert salts, and usernames to HEX along with encrypted keys, and store then in the middle of file/field full of random HEX characters. Random HEX characters that are random for every login.

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...