在Winforms .NET应用程序中存储几个API帐户 [英] Store several API accounts in Winforms .NET Application

查看:78
本文介绍了在Winforms .NET应用程序中存储几个API帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Winforms C#应用程序,该应用程序可以与多个API(例如Google等)进行通信.用户一次可以连接多个帐户.

问题是我不知道将那些帐户安全地存储在哪里(用户名/密码,oauth密码等等).第一个想法是将帐户信息存储在app.config中(加密),但是我认为这是不安全的.另一个想法是存储在注册表中(例如HKEY_CURRENT_USER/etc..Accounts/Google/0/user).

您有什么建议?

Thanx!

I amb developing a winforms c# application that communicates with several APIs (like Google, etc...). The user can connect to more than one account a time.

The thing is that I don''t know where to store securely those accounts (username/password, oauth keypass, etc...). The first idea was to store the accounts information in the app.config (encrypted), but i think it is unsecure. The other idea was to store in the registry (like HKEY_CURRENT_USER/etc....Accounts/Google/0/user).

What do you recommend?

Thanx!

推荐答案

第一种方法更好,即将信息存储到app.config中,因为当您需要更改信息时,它将变得容易且无风险要做到这一点
The first approach is better ie to store information to app.config as when you need to change the info then it''ll be easy and not risky to do it


好,该信息将由应用程序动态存储.但是,将帐户信息存储在app.config文件中是否安全?
Well, the info is stored dinamically by the application. But, is secure to store the account info in app.config file?


这篇关于在Winforms .NET应用程序中存储几个API帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆