I had to install microsoft outlook in my nexus 5 device and as a result i had to encrypt the same as per my work organization mandate.
now i have to give a 8 digit code everytime i need to access it.
my phone shuts down anytime during the day and also when i put it for charging in the night...