#DOJO #9 : Help Bill Murray with his passwords
sorting characters
##Problem Description
Last night, all Bill Murray's accounts have been hacked! His password 'groundhogday' was the same for his Facebook account, Twitter account, Amazon account etc.
He decided to change all his passwords, and to use 21 differents high secure passwords for his 21 accounts. But he needs a way to store them and mainly, to remember them...
##What to do? He's asked us to write a program which generate a password based on a sentence. For that, the programm will take a block of text and return the letters it contains, sorted (step1)
For an even more secure password, he also want to have the ability to add numbers in his password. So then, the program will count the letter and replace 'aaaa' by '4a' ; 'bb' by '2b' etc (step2)
##What is the expected result? So, Given the text:
When not studying nuclear physics, Bambi likes to play beach volleyball.
our program would return:
Step1 : aaaaabbbbcccdeeeeeghhhiiiiklllllllmnnnnooopprsssstttuuvwyyyy
Step 2 : 5a4b3c1d5e1g3h4i1k7l1m4n3o2p1r4s3t2u1v1w4y
Then, Bill Murray has even all his 'passwords' online and nobody knows it! http://www.brainyquote.com/quotes/authors/b/bill_murray.html
###Hint The most interesting point here is to find the best way to sort characters, don't fool.
AL+ ED:
https://gist.github.com/annelisebouyer/22c3c68012fcc634882e
Paulloz
https://gist.github.com/Paulloz/d01ebe1638727bab1a56
NKB
https://gist.github.com/n-kb/3a7c7a76e20df6bead55
Toutenrab+Seb
https://gist.github.com/pbellon/e58889c5720526258441