title: How to decode a base64 MEGA Link Key
body: <p>I am trying to decrypt a base64 MEGA link key, but I keep getting an exception using this code:</p>
  
  <pre><code>byte[] key = Convert.FromBase64String("MEGjPPBKkqpB_tsyqfGuvc4zUe_MRZ-GGWD4JL-89Ms");
  </code></pre>
  
  <p>the exception is <em>An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll</em>, The format of s is invalid. s contains a non-base-64 character, more than two padding characters, or a non-white space-character among the padding characters.</p>