Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
+1
person also asked this
people also asked this
Replies
7 replies
Answers
1 answer
Subscribers
10 subscribers
Views
17527 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Decrypt a password
sowjanyav430
over 8 years ago
Hello Everyone,
I am using a!encryptedTextField() to encrypt a password and this allows only EncryptedText as interface inputs,
now i want to decrypt and populate the password (for sending the password in an email)...
As i couldn't use a!encryptedTextField() to decrypt in an expression rule, please suggest me how to decrypt the password.
Thanks in advance..
OriginalPostID-262539
Discussion posts and replies are publicly visible
Parents
+1
nareshs427
Certified Senior Developer
over 8 years ago
I assume that it's not just for password purpose but if there is any similar requirement to display any encrypted text in an email or any. I've found one tweak that can decrypt the text using a!encryptedTextField() itself. This is not the best practice though but give it a try and play around.
1. Use the below code in an expression rule with encrypted text type as a rule input. It will return a plain text as output and you can use it wherever you want to display like actual case here, the password.
tosting(index(a!encryptedTextField(value:ri!encryptedText),"value",null))
2. By using the same expression above save the encrypted text into a sting type variable in saveInto of a!encryptField(), later save it in DB or maintain in the process.
And the last one, check the below link for the shared component which has functions to encrypt and decrypt but I'm not sure will they work, give it try.
forum.appian.com/.../summary
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
Reply
+1
nareshs427
Certified Senior Developer
over 8 years ago
I assume that it's not just for password purpose but if there is any similar requirement to display any encrypted text in an email or any. I've found one tweak that can decrypt the text using a!encryptedTextField() itself. This is not the best practice though but give it a try and play around.
1. Use the below code in an expression rule with encrypted text type as a rule input. It will return a plain text as output and you can use it wherever you want to display like actual case here, the password.
tosting(index(a!encryptedTextField(value:ri!encryptedText),"value",null))
2. By using the same expression above save the encrypted text into a sting type variable in saveInto of a!encryptField(), later save it in DB or maintain in the process.
And the last one, check the below link for the shared component which has functions to encrypt and decrypt but I'm not sure will they work, give it try.
forum.appian.com/.../summary
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
Children
No Data