Data is residing in DB but is it possible to show encrypted data in UI instead of actual value?
Discussion posts and replies are publicly visible
The purpose of encryption is to make something meaningless to everyone who is not authorized. That being the case, you may want to consider simply not displaying it, or have some kind of meaningless place holder.
It is possible the a!encryptedTextField, might be what you are looking for, too.
Was the data saved via an encryptedTextField or was encrypted using another method?
encryptedtextFiled can be used to encrypt while saving into DB. But here what i am looking for if any data is being processed then if it can be encrypted at Appian level whether UI or process report etc.
You can use this plugin: community.appian.com/.../encryption-functions
Do you know how can I tell if a string is encrypted or not? For example, if I encrypt a text and want to display the actual value, I need to decrypt it. But if the text was not encrypted before and I use the decrypt function, it will throw an error. So we need: if encrypted, then use decrypt function else just display the value. How can we do this?
I don't think there is a way , Can you tell us where you are getting this data from??
How does it come that you do not know whether a certain value is encrypted or not?
I do not know which function you use to encrypt the values. Could it be that the encrypted strings start or end with a certain pattern that you could try to detect? As this is not fool proof, the only supported option I see is, to write a plugin function.
I am using this plugin Encryption Functions This is an example to show case what I am trying to do:
a!textField( label: "Owner Name", placeholder: "Owner Name", value:if( rule!isEncrypted(string:local!test), decryptvalue(local!test), local!test ), saveInto: { a!save(local!test,encryptvalue(save!value)) }, required: true )
Please let me know what your thoughts are and I am curious to know how others have implemented this.
Honestly don't know how you could tell whether a value is encrypted or plain text.
This is data the user enters such as social security number, name, address, etc.