Storage of login data

I would like to know where HA stores the login data when I integrate a Shelly or Sma device? Is the login data stored encrypted or is it visible in a file?
Thanks in advance for the hints!