File API configuration
The File API's behavior can be configured through settings in the registry.
The File API provides two kinds of protection; native protection and PFile protection.
- Native protection - the file is protected to an AD RMS format based on its MIME type (file name extension).
- PFile protection - the file is protected to the AD RMS Protected File (PFile) format.
For more information about supported file formats, see File API File Support Details in this topic.
The following table describes the keys and key values that control encryption.
Key/Key Value, Type, Description |
---|
HKEY_LOCAL_MACHINE\Software\Microsoft\MSIPC\FileProtection Type: Key Description: Contains general configuration for the File API. |
HKEY_LOCAL_MACHINE\Software\Microsoft\MSIPC\FileProtection\<EXT> Type: Key Description: Specifies configuration information for a specific file extension; for example, TXT, JPG, and so on.
|
HKEY_LOCAL_MACHINE\Software\Microsoft\MSIPC\FileProtection\<EXT>\Encryption Type: REG_SZ Description: Contains one of three values:
|
Default behavior for different file formats
- Office files Native encryption is enabled.
- txt, xml, jpg, jpeg, pdf, png, tiff, bmp, gif, giff, jpe, jfif, jif files Native encryption is enabled (xxx becomes pxxx)
- All other files Encryption is protected file (pfile) enabled (xxx become xxx.pfile)
If encryption is attempted on a file type that is blocked, an IPCERROR_FILE_ENCRYPT_BLOCKED error occurs.
File API - File Support Details
Native support can be added for any file type (extension) . For instance,any extension <ext> (non-office), *.p<ext> will be used if the admin configuration for that extension is "NATIVE".
Office files
- File extensions: doc, dot, xla, xls, xlt, pps, ppt, docm, docx, dotm, dotx, xlam, xlsb, xlsm, xlsx, xltm, xltx, xps, potm, potx, ppsx, ppsm, pptm, pptx, thmx.
- Protection type = Native (default): sample.docx is encrypted to sample.docx
- Protection type = Pfile: For Office files has the same effect as Native.
- Off: Disables encryption.
PDF files
- Protection type = Native: sample.pdf is encrypted and named sample.ppdf
- Protection type = Pfile: sample.pdf is encrypted and named sample.pdf.pfile.
- Off: Disables encryption.
All other file formats
- Protection type = Pfile: sample.zzz is encrypted and named sample.zzz.pfile; where zzz is the original file extension.
- Off: Disables encryption.
Examples
The following settings enable PFile encryption for txt files. Office files will have native protection applied (by default), txt files will have PFile protection applied, and all other files will have protection blocked (by default).
HKEY_LOCAL_MACHINE
Software
Microsoft
MSIPC
FileProtection
txt
Encryption = Pfile
The following settings enable PFile encryption for all non-Office files except txt files. Office files will have native protection applied (by default), txt files will have protection blocked, and all other files will have PFile protection applied.
HKEY_LOCAL_MACHINE
Software
Microsoft
MSIPC
FileProtection
*
Encryption = Pfile
txt
Encryption = Off
The following settings disable native encryption for docx files. Office files, except for docx files, will have native protection applied (by default) and all other files will have protection blocked (by default).
HKEY_LOCAL_MACHINE
Software
Microsoft
MSIPC
FileProtection
docx
Encryption = Off