Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Encrypted password in tSendMail

In the tSendMail component, we can use context variables.
For the password of the account used for the SMTP server, you can have also a context variable.
So the encrypted version of the password is saved in default.properties file
now the question is: if I  move my job and need to reconfigure the job with a new smtp server how can I do it?
If I modify the encrypted password, of course it does not work anymore.
So I am looking for a component to be able to reencrypt the new password.
I don't need to know the encryption algorithm.
I just want to enter "password" to get the encrypted version to update the default.properties
Hello Talend experts, is it a dream?
Is there a solution
Why it does not exist?
Thanks
Didier
Labels (2)
17 Replies
Anonymous
Not applicable
Author

Whats wrong with my suggestion? You do not need and input flow for the message component to allow a question and get the answer.
Anonymous
Not applicable
Author

I don't have anymore the error at the tMsgBox level
Now I have it at the tJava level
Anonymous
Not applicable
Author

Now I don't have any erreor but I don't have my encrypted password

0683p000009MD2B.png
in the tJava component:
String EncrypedPWD=PasswordEncryptUtil.encryptPassword(row2.pwd);
??
0683p000009MPcz.png
Anonymous
Not applicable
Author

I have made a simple job encrypting a clear password into a encrypted password.
Encrypt_PWD_20160121_1417.zip.zip

0683p000009MCbC.png
Anonymous
Not applicable
Author

You have done numerous errors. All the stuff with the flows are not necessary. 
Anonymous
Not applicable
Author

Wonderful it works! Thanks!
Now the question is: I can set a context vriable with encrypted variable. How can I save it in the file including the context (default.properties).
Doing something a dump of the current version of the context variables
I have tried :
0683p000009MD2G.png
but the  default.properties file is not updated!!!

Thanks
Didier
Anonymous
Not applicable
Author

now it works completely

0683p000009MD2L.png
Anonymous
Not applicable
Author

The encrypted password should only by set directly in the default.properties file and not in the studio. In the studio the encryption is done automatically (in such a case you would encrypt an already encrypted password).
You can save this file just all other csv file also (in this case the = is the delimiter and as the line separator use the UNIX style!)