I use several scriptson my Pi as send a mail from the Rpi, connect to an FTP to back up smt...
As a general rule, the passwords that allow me to access these services are stored in a configuration file.
Either in /etc/ service_name or in a configuration file of the program I created.
The problem is that if you take the SD card (or the storage device) out of the Rpi and read it on another computer (in this case I did the test under Windows), I can have access to all these passwords since I have access to the different files on the card
Do you have a safer way to store these passwords?