PowerShell Gallery
gSecret will securly store tokens. On Linux and Mac OS, tokens are stored in files and names are hashed for obscurity. On Windows the data protection API (DPAPI) is used to encrypt the tokens in the registry.