Decrypt a password

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
    Certified Senior Developer
    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
Reply
  • +1
    Certified Senior Developer
    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
Children
No Data