title: Store data to a file in encrypted form in c# windows 10 universal app development
body: <p>Here I tried to write some text into a file locally in encrypted form.But when i see the file locally the data is not in encrypted form.
  Can someone please correct me.</p>
  
  <pre><code>    //Writing to file
      StorageFolder folder = Windows.Storage.ApplicationData.Current.LocalFolder;
      // textBlock.Text = folder.Path;
      StorageFile sampleFile = await folder.CreateFileAsync("sample.txt", CreationCollisionOption.ReplaceExisting);
      var buffer = Windows.Security.Cryptography.CryptographicBuffer.ConvertStringToBinary(
                  "Text input into sample.txt file", Windows.Security.Cryptography.BinaryStringEncoding.Utf8);
      await Windows.Storage.FileIO.WriteBufferAsync(sampleFile, buffer);
  
      //Reading from file
      StorageFolder storageFolder = Windows.Storage.ApplicationData.Current.LocalFolder;
      sampleFile = await storageFolder.GetFileAsync("sample.txt");
      string text = await Windows.Storage.FileIO.ReadTextAsync(sampleFile);
      // textBlock.Text = text;
  </code></pre>