title: django, python and link encryption
body: <p>I need to arrange some kind of encrpytion for generating user specific links. Users will be clicking this link and at some other view, related link with the crypted string will be decrypted and result will be returned.</p>
  
  <p>For this, I need some kind of encryption function that consumes a number(or a string) that is the primary key of my selected item that is bound to the user account, also consuming some kind of seed and generating encryption code that will be decrypted at some other page.</p>
  
  <p>so something like this</p>
  
  <pre><code>my_items_pk = 36 #primary key of an item
  seed = "rsdjk324j23423j4j2" #some string for crypting
  encrypted_string = encrypt(my_items_pk,seed)
  #generates some crypted string such as "dsaj2j213jasas452k41k"
  and at another page:
  decrypt_input = encrypt(decypt,seed)
  print decrypt_input
  #gives 36
  </code></pre>
  
  <p>I want my "seed" to be some kind of primary variable (not some class) for this purpose (ie some number or string).</p>
  
  <p>How can I achieve this under python and django ?</p>