Generate a hash value

If there are files that you don’t want scanned by data loss prevention (DLP), you can add the hash value of these files to a file hash list. Files that are included in a file hash list automatically bypass DLP. Depending on the operating system, complete this procedure to generate a hash value that you can copy to a file hash list.

On Windows

How to

  1. Open a PowerShell window.
  2. Change directories to the location where the file is located.
  3. Enter this command:
    get-FileHash [filename] -Algorithm SHA256
    
    	
    where [filename] is the filename.

Next steps

Copy the hash value to a file hash list. To create a file hash list, see Create a file hash list.

On Mac

How to

  1. Open a terminal window.
  2. Enter this command:
    shasum -a 256 <fileLocation>

    where <fileLocation> is the full path of the file. You can also drag and drop the file to the terminal window.

Next steps

Copy the hash value to a file hash list. To create a file hash list, see Create a file hash list.