Is Sharepoint CSOM secure/encrypted?

Gino Montoya 0 Reputation points
2023-04-05T21:48:27.2033333+00:00

Hello, We're using Microsoft.Sharepoint.Client with Powershell to create libraries and folders and upload documents to a Sharepoint site. Would these transactions be encryted and secure? Thanks.

Microsoft 365 and Office | SharePoint | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2023-04-06T02:02:08.5066667+00:00

    Hi @Gino Montoya You can store the credentials in Windows Credentials Manager, then use this library to get the ICredentials object

    ICredentials credential = CredentialManager.GetSharePointOnlineCredential("site url");
    

    By doing this, you let Windows handles the encryption and storing of username and password. If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.