There is no way to "hack" an RFID lock using an MP3 player, what Hannah does makes no sense.
Hannah is about to escape out the door when she hears a baby crying and decides to try and take it. It would have made much more sense for her to escape and come back with help then to try and run and escape with a crying baby.