I encrypted my phone (samsung S4) of which i dont remember the password. Need help to unlock it and save the data I am using Samsung S4. I can't remember the password i setup while encrypting it. Is there a way to unlock the device ? 

If it cant be unlocked how do i factory reset the device or i'll have to go to samsung service  center for that too.
Master reset with hardware keys


Turn Off the Device
Press and Hold the Volume Up, Home, and Power Button
When the phone vibrates release the Power Button, but continue to hold the other two
When you see the system recovery screen release the other two buttons
Using the Volume down, select "Wipe data / Factory reset"
Press Power Button to select it
When the reset is complete, choose Reboot system now and press power button to reboot the phone.


Disclaimer: THIS WILL ERASE EVERYTHING ON YOUR PHONE.  This does not solve the question about how to recover data that is encrypted.  It only answers the question about factory resetting the phone.