Skip to content

Encrypt and Decrypt Non-Password Fields #1561

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Oct 30, 2024

Conversation

vamsi0777
Copy link
Contributor

Generally when you want to encrypt or decrypt any Non-password fields earlier we have Glide Encrypter API methods for encryption and decryption.
The GlideEncrypter API uses 3DES encryption standard with NIST 800-131 A Rev2 has recommended against using to encrypt data after 2023.
ServiceNow offers alternative cryptographic (Key Management Framwork) solutions to the GlideEncrypter API.

Note: ServiceNow recommending to deprecate GlideEncrypter API with in the instances as soon as possible. The actual dead line is September 2025.

These are the sample scripts I ran in my PDI: For Non-password fields. I used AES 256 algorithm for Symmetric Data Encryption/Decryption.

To test the scripts you need to create Cryptographic module and generate the key.

"global.vamsi_glideencrypter" is my cryptographic module name.

Generally when you want to encrypt or decrypt any Non-password fields earlier we have Glide Encrypter API methods for encryption and decryption. 
The GlideEncrypter API uses 3DES encryption standard with NIST 800-131 A Rev2 has recommended against using to encrypt data after 2023. 
ServiceNow offers alternative cryptographic (Key Management Framwork) solutions to the GlideEncrypter API. 

Note: ServiceNow recommending to deprecate GlideEncrypter API with in the instances as soon as possible. The actual dead line is September 2025.

These are the sample scripts I ran in my PDI: For Non-password fields. I used AES 256 algorithm for Symmetric Data Encryption/Decryption.

To test the scripts you need to create Cryptographic module and generate the key. 

"global.vamsi_glideencrypter" is my cryptographic module name.
Generally when you want to encrypt or decrypt any Non-password fields earlier we have Glide Encrypter API methods for encryption and decryption. 
The GlideEncrypter API uses 3DES encryption standard with NIST 800-131 A Rev2 has recommended against using to encrypt data after 2023. 
ServiceNow offers alternative cryptographic (Key Management Framwork) solutions to the GlideEncrypter API. 

Note: ServiceNow recommending to deprecate GlideEncrypter API with in the instances as soon as possible. The actual dead line is September 2025.

These are the sample scripts I ran in my PDI: For Non-password fields. I used AES 256 algorithm for Symmetric Data Encryption/Decryption.

To test the scripts you need to create Cryptographic module and generate the key. 

"global.vamsi_glideencrypter" is my cryptographic module name.
Deleting the duplicate file
@vamsi0777 vamsi0777 changed the title encryptAndDecryptPasswordFields Encrypt and Decrypt Password Fields Oct 29, 2024
@vamsi0777 vamsi0777 changed the title Encrypt and Decrypt Password Fields Encrypt and Decrypt Non-Password Fields Oct 29, 2024
@SapphicFire SapphicFire self-assigned this Oct 30, 2024
Copy link
Contributor

@SapphicFire SapphicFire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Please endeavour to showcase more applied use cases in future as this does not differ massively from ServiceNow documentation

@SapphicFire SapphicFire merged commit 3ae1cc4 into ServiceNowDevProgram:main Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants