You need to sign in to do that
Don't have an account?
Cary Howell
Data loader password encryption check is failing.
I am performing the following commands and the result is a Given final block not properly padded.
I am running the uber jar on Linux but I have tried the encrypt.bat file under Windows with the exact same result!
First generate the key from the word "test" and store it in the key.txt file
java -cp bin/dataloader-35.0.0-uber.jar com.salesforce.dataloader.security.EncryptionUtil -g test > key.txt
Take my clear text password 'MyPassword" and encrypt it using the key in the key.txt file
java -cp bin/dataloader-35.0.0-uber.jar com.salesforce.dataloader.security.EncryptionUtil -e MyPassword "key.txt"
Taking the result of the above line I pass the encrypted password and the key from above to the -v option; fails with error.
java -cp bin/dataloader-35.0.0-uber.jar com.salesforce.dataloader.security.EncryptionUtil -v [encrypted password] test
error: Given final block not properly padded
Now if I simply create an encripted password without a key.txt file and validate (-v) it, it says all is okay.
Decryption of encrypted value MATCHES the expected value
What might I be doing wrong?
I am running the uber jar on Linux but I have tried the encrypt.bat file under Windows with the exact same result!
First generate the key from the word "test" and store it in the key.txt file
java -cp bin/dataloader-35.0.0-uber.jar com.salesforce.dataloader.security.EncryptionUtil -g test > key.txt
Take my clear text password 'MyPassword" and encrypt it using the key in the key.txt file
java -cp bin/dataloader-35.0.0-uber.jar com.salesforce.dataloader.security.EncryptionUtil -e MyPassword "key.txt"
Taking the result of the above line I pass the encrypted password and the key from above to the -v option; fails with error.
java -cp bin/dataloader-35.0.0-uber.jar com.salesforce.dataloader.security.EncryptionUtil -v [encrypted password] test
error: Given final block not properly padded
Now if I simply create an encripted password without a key.txt file and validate (-v) it, it says all is okay.
Decryption of encrypted value MATCHES the expected value
What might I be doing wrong?
All Answers
https://developer.salesforce.com/forums/?id=906F00000008zYoIAI
From a Windows 7 box using the batch files.
encrypt.bat -g test > key.txt
encrypt.bat -e MyPassword "key.txt"
encrypt.bat -v [encrypted password from prevous command] test
error: Given final block not properly padded.