title: A good way to shuffle and then unshuffle a python list
body: <p>So lets say i have a list of tuples</p>
  
  <pre><code>l=[(1,2),(3,4),(5,6),(7,8),(9,10)]
  </code></pre>
  
  <p>I want to shuffle the values after a specific rule, so that after i shuffle the list i can unshuffle it back using the same method.</p>
  
  <p>One example would be that i shift the entire list to the right with 1 position and then i can shift the shuffled list with one position to the left so i can get the original list.</p>
  
  <p>But this seems kinda simple so i was wondering if they're more creative methods of doing this </p>
  
  <p>Edit: The idea would be that if i send someone the shuffled list, he could unshuffle it without knowing the original list,only knowing the method used for shuffle</p>