I'll hope that this is the right tread.
I have an s5 SM-G900F with device encryption enabled. With my nexus 7 running 4.4.2 and S4 active running 4.2.2 I have device encryption enabled. I use a python script to change the lockscreen pin. SO'll have an easy way to open the device. and a difficult password for unlocking the device when booting up.
This works on both S4 active and Nexus 7. also tested it on a Note 2 running 4.1.1.
Point is that this little trick doens't work om my shiny S5 gives an error: Password hash size mismatch.
I tried ohter apps with the same functionalitiy like: encpasschanger and cryptfs password. both gave a similar error.
Could it be that the s5 stores its PW database on a different location?
i'll attach the pithon sciypt with this post.