How to use locate on an encrypted home directory
Use a separate db for the encrypted part, and store that db on that encrypted part. A complete working solution with safeguards for not running when on battery or when the directory is encrypted, is linked below:
Read more: Link - tolaris.com · Secure locate with ecryptfs, part 2