Find and retrieve the encryption key automatically Note: This is a draft version, please help to modify, Thanks!