Encryption makes this part a bit difficult, there are a few topics around that:
And someone implemented a recovery tool: