My solution is a twothree steps process.
Step 1 : Create a base permutation
1. Create a base permutation
Step 2 : Create a sequence of values based on the whole password
2. Create a sequence of values based on the whole password
3. Now, taking advantage of having a card deck handy, mix up the base permutation using the sequence just created.
#Step 3 : mix up the base permutation using the sequence just created.
Taking advantage of having a card deck handy, setup a 26 cards deck (using red cards or rblackblack cards as you wish), order these 26 cards in the order of the base permutation, face up (remember, each card is assigned a letter, eg. $1\diamondsuit$=A, $2\diamondsuit$=B, $...$, $Q\diamondsuit$=L, $K\diamondsuit$=M, $1\heartsuit$=N, $2\heartsuit$=O, $...$, $Q\heartsuit$=Y, $K\heartsuit$=Z).
For each value of the resulting sequence of pointstep 2, deal that many cards, face up, one at a time, to make a pile in reverse order (You may create the pile on the table or better, in your other hand. The only important thing is that the cards must be face up and be in reverse order). Then, put the resulting pile under the remaining cards of the deck. Repeat until the sequence is exhausted.