Skip to content

Commit

Permalink
feat: support file encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider committed Dec 25, 2018
1 parent 3d05517 commit 88cf587
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/CoreApi/FileSystemApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ internal FileSystemApi(IpfsClient ipfs)
opts.Add($"hash=${options.Hash}");
if (options.Encoding != MultiBase.DefaultAlgorithmName)
opts.Add($"cid-base=${options.Encoding}");
if (!string.IsNullOrWhiteSpace(options.ProtectionKey))
opts.Add($"protect={options.ProtectionKey}");
opts.Add($"chunker=size-{options.ChunkSize}");

var json = await ipfs.UploadAsync("add", cancel, stream, name, opts.ToArray());
Expand Down
2 changes: 1 addition & 1 deletion src/IpfsHttpClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Ipfs.Core" Version="0.38.1" />
<PackageReference Include="Ipfs.Core" Version="0.39.0" />
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
<PackageReference Include="System.Net.Http" Version="4.3.3" Condition="'$(TargetFramework)' == 'netstandard14'" />
<PackageReference Include="System.Net.Http" Version="4.3.3" Condition="'$(TargetFramework)' == 'net45'" />
Expand Down

0 comments on commit 88cf587

Please sign in to comment.