The goal: Using Helm Chart pre-install hook, take a file on the filesystem, encode it and place it as a resource file (referenced by a configMap.
Questions:
No, Hooks run as Jobs inside the Kubernetes cluster, so they have no access to your workstation. What you want is the Events system (https://github.com/helm/community/blob/master/helm-v3/002-events.md) which is still a WIP I think.