title: Rijndael algorithm (How to create our own Key )
body: <p>All the samples for Rijndael algorithm are defining the key from the Rijndael class itself, can't we provide the Key of our own. Any hint on this will help me a lot.</p>
  
  <p>The sample application we are creating is for windows mobile and it doesn't support PasswordDeriveBytes</p>
  
  <p>Thanks in advance
  Geetha</p>
  
  <p>Update on this topic:
  As per the code sample provided below, we have tried it and it seems to be working but there is a small hiccup in this. when we decrypt the data there is a 8 bit padding up on the right side of the value for the example, we are encrypting a Unique key for transaction and it looks like this :</p>
  
  <p>Before encryption: 
  MI03112009044625000000000000008024754008</p>
  
  <p>After Decryption:
  MI03112009044625000000000000008024754008揞⑁㋬㓠⥳空⠜資</p>
  
  <p>can anyone help on this right padding happening in the original value.</p>
  
  <p>thanks
  Geetha</p>