1
我写过我的hello world今日AWS计划 - 简单的文件上传到预制的S3存储桶。使用Amazon AWS秘密密钥部署C#客户端应用程序(S3)?
在本程序部署到客户端桌面的环境中(出于参数的原因),我的秘密访问密钥是否安全?
using (AmazonS3Client a = new AmazonS3Client("MyAccessKey", "MySecretAccessKey")) {
foreach (ListViewItem lvi in listView1.Items)
{
TransferUtilityUploadRequest tr = new TransferUtilityUploadRequest()
.WithBucketName("test_mydomain_com")
.WithFilePath(((FileInfo)lvi.Tag).FullName)
.WithTimeout(5 * 60 * 1000);
TransferUtility tu = new TransferUtility(a);
tu.Upload(tr);
MessageBox.Show("Win!");
}
}
所以: 发送操作的名字我的网络服务,保持我的秘密密钥, 这对于操作返回散列签名, 并从那里使用签名进行。 – rrrhys 2011-02-23 02:48:31