ServiceNow SFTP File Encryption

pramodkumar
Tera Expert

Hi All - We use SFTP Servers for uploading data into ServiceNow via transform maps. How can we encrypt a file in SFTP and Decrypt once received in ServiceNow?

 

 

Thanks!

2 REPLIES 2

Community Alums
Not applicable

Hi @pramodkumar ,

SFTP will only encrypt the file while it is being transferred. The original file is UN-encrpyted at the sender and recipient host. So only the network transfer is encrypted. If this if good enough according your policy, perfect. Nothing complicated to setup.

SFTP File Transfer activity pack 

Amit Gujarathi
Giga Sage
Giga Sage

HI @pramodkumar ,
I trust you are doing great.

To encrypt a file before uploading it via SFTP and decrypt it once received in ServiceNow, you can follow the steps outlined below:

  1. Generate an encryption key:

    • You can use a cryptographic algorithm like AES (Advanced Encryption Standard) to generate a secure encryption key. Ensure the key is strong and kept confidential.
  2. Encrypt the file on the SFTP server:

    • Establish a connection to the SFTP server using appropriate credentials.
    • Retrieve the file to be uploaded.
    • Apply the encryption algorithm using the generated encryption key to encrypt the file.
    • Save the encrypted file on the SFTP server.
  3. Upload the encrypted file to ServiceNow:

    • Use ServiceNow's SFTP functionality to connect to the SFTP server.
    • Retrieve the encrypted file from the SFTP server.
    • Store the encrypted file in a designated location within ServiceNow, such as a file attachment or a document record.
  4. Decrypt the file in ServiceNow:

    • Access the encrypted file stored in ServiceNow.
    • Use the same encryption key that was used to encrypt the file on the SFTP server.
    • Apply the decryption algorithm (AES) using the encryption key to decrypt the file.
    • Ensure the decrypted file is stored securely within ServiceNow.

Was this answer helpful?


Please consider marking it correct or helpful.


Your feedback helps us improve!


Thank you!


Regards,


Amit Gujrathi