Could anyone inform me on the password hashing method is employed by cmdbuild? I ran it through my trusty Hash identifier (http://code.google.com/p/hash-identifier/) But it did not detect the hashing method.
Would be great for automating my installation. Thanks
...and if it helps anyone - it looks the code gets the bytes from the string and then acts on that. So a simple (linux) command like echo -en 'encrypted_password_from_db' | base64.exe -d will not work.
My java is rusty, but it looks like the class takes the string from the database, converts it into a byte array and then (crucially) decrypts THAT using Java cipher classes implementing PBEWithMD5AndDES.
To cut a long story short - assuming you actually have access to the underlying postgres database and can get the password strings from the user table. It is relatively easy to spin up eclipse (or whatever you favour), create a new main class to define what you want to decrypt, add an interface from
I had to edit things a bit in order to get it to run (remove loggesrs and "Guarded by bits" - but I got it to work. Here is what I used as a class (remember it is in the same directory as Base64Digester etc):