You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Users
Hi,
I have a doubt here. This code encrypts but doesn't decrypt. Instead I get the encrypted string back from the decrypt function. Does it need state to be maintained between these two functions ?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jenkins...@googlegroups.com
Instead of getPlainText(), try hudson.util.Secret.toString(secret)
If that doesn't work, then try printing both the encrypted value and
the plain text from the `secret` object in the encrypt method... if it
gives the result you expect, then yes, there seems to be an issue with
state. It might not be picking the right crypto algorithm if you're
doing this across different JVMs, for example.