Does anyone know of a way to reverse encryption on attachments?

John VanBruggen
Giga Guru

I am looking for a way to remove encryption context from a large number of attachments in relation to a specific table.

Is there a way to do this?   I see scripts in the WIKI that show how to encrypt en mass but nothing for removing encryption.

Thanks in advance.

Check out my Consultant's Survival Guide
https://youtube.com/watch?v=zYi8KhP9SUk
17 REPLIES 17

Valor1
Giga Guru

What kind of encryption is applied? And why do you want to remove it? It's probably there for a reason...


Yes it is there for a reason.   I put it there.


Now I would like to remove it.



We have been using SNOW encryption and are moving to the new Edge Encryption so that we can store the encryption keys in house outside of the cloud.   We would also like to have a process for rotating our encryption keys.



So, that being said and now that we have established that I am not simply trying to hack around an encryption key, is there a way to decrypt the files?   Rest assured, if I had the rights to run a BG script that would do this (which I do) I'd simply assign myself the role needed to view the files (which would be a much easier solution to viewing encrypted files).



If anyone has any thoughts, ideas or solutions for this I'd appreciate your input.



Thanks!


Check out my Consultant's Survival Guide
https://youtube.com/watch?v=zYi8KhP9SUk

The SN Nerd
Giga Sage
Giga Sage

I don't think attachments are encrypted, they are compressed.


Why would you need to do this? I can't think of any use cases.



If you are looking to export them check out this post


Exporting incidents with their attachments



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

I can assure you that the files are indeed encrypted using SNOW encryption.


Check out my Consultant's Survival Guide
https://youtube.com/watch?v=zYi8KhP9SUk