How to handle generated Secrets in custom terraform provider

I have written a custom terraform provider for my application. We have a resource called ‘user’ for which I am generating a password inside the provider, now I want this password to be part of export attribute but do not want this password to be stored in the state. Is there any way to do it?