Encrypting passwords

Good afternoon, I’m trying to set up a zero-to-jupyterhub with LDAP and Kerberos integration (hadoop). To get a TGT, I need to pass the user’s password to the user’s POD and do kinit. I have thoughts on how to implement this through PVC. But I would like to transmit the encrypted password through ENV to POD and receive TGT using it. Is there such a possibility in jupyter?