How can i save the values from the config.html in my extension?

You can read more about the config service

So it’s up to you to decide what works best for your use case and the security thereof