-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add note on xplat support for Encrypt/Decrypt on .NET Core #2259
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
Conversation
It might make sense to use the |
@JeremyKuhne, could you take a look at this PR, please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @SeanKilleen, for contributing to the dotnet/dotnet-api-docs repo and enhancing the documentation for these two methods. I've suggested several changes. Also, I agree that a note would be the best format for presenting this information; it can be placed between the first and second paragraph of the Remarks section.
There was a problem hiding this 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 modulo @rpetrusha's comments
@rpetrusha feedback on language 👍 Co-Authored-By: SeanKilleen <[email protected]>
@rpetrusha feedback on language 👍 Co-Authored-By: SeanKilleen <[email protected]>
@rpetrusha feedback on language 👍 Co-Authored-By: SeanKilleen <[email protected]>
@rpetrusha feedback on language 👍 Co-Authored-By: SeanKilleen <[email protected]>
✅ Comments incorporated @rpetrusha I think this is ready to go assuming you agree with the implementation of the note style. 👍 |
Thanks for making the changes, @SeanKilleen. We generally don't include headings in notes, though, since the note itself stands out clearly. I've suggested that you remove it, but also changed the note style to IMPORTANT to make it stand out a bit more. |
@rpetrusha I originally copied the note styling from elsewhere in the docs so I assumed it was consistent, but maybe that's not the case -- no worries 👍 I think I've made the changes you requested (removed the bold formatting and replaced |
Thanks for making these changes, @SeanKilleen. I think that two additional improvements to the note would be helpful:
|
@rpetrusha I believe I've made the changes as you've requested. 👍 let me know if you have further feedback. |
(FYI, given the build error, OpenPublishing.Build does not seem to have failed based on my changes alone as far as I can tell). |
No @SeanKilleen. Our engineering team deployed a fix to this issue today. I've kicked off a new build. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making these additional changes, @SeanKilleen. Your changes look good, and the build is now successful, so I'll merge your PR. The new content should be live on docs.microsoft.com in the next day or two.
xml/System.IO/File.xml
Outdated
|
||
|
||
> [!NOTE] | ||
> **A Note on .NET Core Cross-Platform Support:** This API is only supported on Windows platforms that are able to use the NTFS Encrypting File System (EFS). Any attempt to use this on non-Windows systems, Windows Home Edition systems, or non-NTFS drives results in a <xref:System.PlatformNotSupportedException> or <xref:System.NotSupportedException>, depending on the situation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> **A Note on .NET Core Cross-Platform Support:** This API is only supported on Windows platforms that are able to use the NTFS Encrypting File System (EFS). Any attempt to use this on non-Windows systems, Windows Home Edition systems, or non-NTFS drives results in a <xref:System.PlatformNotSupportedException> or <xref:System.NotSupportedException>, depending on the situation. | |
> This API is only supported on Windows platforms that are able to use the NTFS Encrypting File System (EFS). Any attempt to use this on non-Windows systems, Windows Home Edition systems, or non-NTFS drives results in a <xref:System.PlatformNotSupportedException> or <xref:System.NotSupportedException>, depending on the situation. |
xml/System.IO/File.xml
Outdated
|
||
|
||
> [!NOTE] | ||
> **A Note on .NET Core Cross-Platform Support:** This API is only supported on Windows platforms that are able to use the NTFS Encrypting File System (EFS). Any attempt to use this on non-Windows systems, Windows Home Edition systems, or non-NTFS drives results in a <xref:System.PlatformNotSupportedException> or <xref:System.NotSupportedException>, depending on the situation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> **A Note on .NET Core Cross-Platform Support:** This API is only supported on Windows platforms that are able to use the NTFS Encrypting File System (EFS). Any attempt to use this on non-Windows systems, Windows Home Edition systems, or non-NTFS drives results in a <xref:System.PlatformNotSupportedException> or <xref:System.NotSupportedException>, depending on the situation. | |
> This API is only supported on Windows platforms that are able to use the NTFS Encrypting File System (EFS). Any attempt to use this on non-Windows systems, Windows Home Edition systems, or non-NTFS drives results in a <xref:System.PlatformNotSupportedException> or <xref:System.NotSupportedException>, depending on the situation. |
xml/System.IO/File.xml
Outdated
## Remarks | ||
The <xref:System.IO.File.Encrypt%2A> method allows you to encrypt a file so that only the account used to call this method can decrypt it. Use the <xref:System.IO.File.Decrypt%2A> method to decrypt a file encrypted by the <xref:System.IO.File.Encrypt%2A> method. | ||
|
||
|
||
> [!NOTE] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> [!NOTE] | |
> [!IMPORTANT] |
xml/System.IO/File.xml
Outdated
@@ -1332,15 +1332,17 @@ | |||
|
|||
## Remarks | |||
The <xref:System.IO.File.Decrypt%2A> method allows you to decrypt a file that was encrypted using the <xref:System.IO.File.Encrypt%2A> method. The <xref:System.IO.File.Decrypt%2A> method can decrypt only files that were encrypted using the current user account. | |||
|
|||
|
|||
> [!NOTE] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> [!NOTE] | |
> [!IMPORTANT] |
Summary
Adds a brief explanation on cross-platform support in .NET Core to
File.Encrypt
andFile.Decrypt
.While it seemed the documentation on support for using Encrypt/Decrypt was clear around requiring at least windows NT, NTFS drive etc. it was not as clear around cross-platform support within .NET Core. This explicitly calls that out, along with a brief explanation.
Fixes #964