Solution of TWRP requested the password :
http://en.miui.com/thread-1943560-1-1.html
"I was having the same problem yesterday while rooting my redmi 5 plus. so what I did was, when it asks for password, just hit cancel and go to wipe and do a factory reset. after that don't reboot, instead...