title: MachineKey.Encode output is hex how do i set it do base64?
body: <p>I'm trying to match the viewstate encryption in my code, my issue is that the output of MachineKey.Encode is hex encoded and not base64 encoded. My code is:</p>
  
  <pre><code>        var plaintextBytes = Encoding.UTF8.GetBytes("Hello");
          var encryptedValue = MachineKey.Encode(plaintextBytes, MachineKeyProtection.All);
          EncryptedData.Text = encryptedValue;
  
          var decryptedBytes = MachineKey.Decode(encryptedValue, MachineKeyProtection.All);
          DecryptedData.Text = Encoding.UTF8.GetString(decryptedBytes);
  </code></pre>
  
  <p>Do you have any idea how i can make that code output a base64 encoded string just like the viewstate data is encrypted?</p>