CryptoNets 项目使用教程

CryptoNets 项目使用教程

CryptoNets CryptoNets is a demonstration of the use of Neural-Networks over data encrypted with Homomorphic Encryption. Homomorphic Encryptions allow performing operations such as addition and multiplication over data while it is encrypted. Therefore, it allows keeping data private while outsourcing computation (see here and here for more about Homomorphic E CryptoNets 项目地址: https://gitcode.com/gh_mirrors/cr/CryptoNets

1. 项目目录结构及介绍

CryptoNets 项目的目录结构如下:

CryptoNets/
├── BasicExample/
├── Caltech101/
├── CifarCryptoNet/
├── CryptoNets/
├── DataPreprocess/
├── HE Wrapper Tests/
├── HE Wrapper/
├── LowLatencyCryptoNets/
├── NeuralNetworks/
├── NeuralNetworksTest/
├── .gitignore
├── CONTRIBUTING.md
├── CryptoNets.sln
├── LICENSE
├── LICENSE.TXT
├── README.md
├── SECURITY.md
├── large_bias.csv
└── nuget.config

目录介绍

  • BasicExample: 包含一些基本的示例代码,用于演示如何使用 Homomorphic Encryption 进行简单的计算。
  • Caltech101: 包含处理 Caltech-101 数据集的相关代码。
  • CifarCryptoNet: 包含处理 CIFAR-10 数据集的相关代码。
  • CryptoNets: 项目的主要代码目录,包含 CryptoNets 和 Low-Latency CryptoNets (LoLa) 的实现。
  • DataPreprocess: 数据预处理的相关代码。
  • HE Wrapper Tests: Homomorphic Encryption 包装器的测试代码。
  • HE Wrapper: Homomorphic Encryption 的包装器代码,用于简化加密操作。
  • LowLatencyCryptoNets: 低延迟 CryptoNets 的实现代码。
  • NeuralNetworks: 神经网络层的实现代码。
  • NeuralNetworksTest: 神经网络层的测试代码。
  • .gitignore: Git 忽略文件配置。
  • CONTRIBUTING.md: 贡献指南。
  • CryptoNets.sln: Visual Studio 解决方案文件。
  • LICENSE: 项目许可证文件。
  • LICENSE.TXT: 许可证文本文件。
  • README.md: 项目说明文件。
  • SECURITY.md: 安全相关说明文件。
  • large_bias.csv: 大型偏置文件。
  • nuget.config: NuGet 配置文件。

2. 项目的启动文件介绍

CryptoNets 项目的启动文件是 CryptoNets.sln,这是一个 Visual Studio 解决方案文件。通过打开这个文件,可以在 Visual Studio 中加载整个项目,并进行编译和运行。

启动步骤

  1. 打开 Visual Studio 2017。
  2. 选择“文件” -> “打开” -> “项目/解决方案”。
  3. 导航到 CryptoNets.sln 文件并打开。
  4. 在解决方案资源管理器中,右键点击 CryptoNets 项目,选择“设为启动项目”。
  5. 点击“启动”按钮(或按 F5)来运行项目。

3. 项目的配置文件介绍

CryptoNets 项目的主要配置文件是 nuget.config,它用于配置 NuGet 包管理器。

nuget.config 文件内容

<configuration>
  <packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
  </packageSources>
</configuration>

配置文件介绍

  • packageSources: 定义了 NuGet 包的来源。在这个配置中,指定了 nuget.org 作为包的来源。

配置步骤

  1. 打开 nuget.config 文件。
  2. 根据需要修改 packageSources 部分,添加或删除包的来源。
  3. 保存文件并重新加载项目。

通过以上步骤,您可以成功配置和运行 CryptoNets 项目。

CryptoNets CryptoNets is a demonstration of the use of Neural-Networks over data encrypted with Homomorphic Encryption. Homomorphic Encryptions allow performing operations such as addition and multiplication over data while it is encrypted. Therefore, it allows keeping data private while outsourcing computation (see here and here for more about Homomorphic E CryptoNets 项目地址: https://gitcode.com/gh_mirrors/cr/CryptoNets

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

胡蓓怡

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值