Skip to content

Commit

Permalink
Update dependencies (#2325)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcschier authored Aug 26, 2024
1 parent f40c013 commit 543bfca
Show file tree
Hide file tree
Showing 15 changed files with 78 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Furly.Extensions.Abstractions" Version="1.0.66" />
<PackageReference Include="Furly.Extensions.Abstractions" Version="1.0.67" />
<PackageReference Include="System.Private.Uri" Version="4.3.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Furly.Extensions.Json" Version="1.0.66" />
<PackageReference Include="Furly.Extensions.MessagePack" Version="1.0.66" />
<PackageReference Include="Furly.Extensions.Newtonsoft" Version="1.0.66" />
<PackageReference Include="Furly.Extensions.Json" Version="1.0.67" />
<PackageReference Include="Furly.Extensions.MessagePack" Version="1.0.67" />
<PackageReference Include="Furly.Extensions.Newtonsoft" Version="1.0.67" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\src\Azure.IIoT.OpcUa.Publisher.Models.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<TieredPGO>true</TieredPGO>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Furly.Azure.IoT" Version="1.0.66" />
<PackageReference Include="Furly.Azure.KeyVault" Version="1.0.66" />
<PackageReference Include="Furly.Azure.IoT" Version="1.0.67" />
<PackageReference Include="Furly.Azure.KeyVault" Version="1.0.67" />
<PackageReference Include="System.IO.FileSystem" Version="4.3.0" />
<PackageReference Include="System.Net.Primitives" Version="4.3.1" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
<None Remove="pki\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Furly.Extensions.AspNetCore" Version="1.0.66" />
<PackageReference Include="Furly.Extensions.Mqtt" Version="1.0.66" />
<PackageReference Include="Furly.Extensions.Dapr" Version="1.0.66" />
<PackageReference Include="Furly.Extensions.MessagePack" Version="1.0.66" />
<PackageReference Include="Furly.Azure.EventHubs" Version="1.0.66" />
<PackageReference Include="Furly.Azure.IoT" Version="1.0.66" />
<PackageReference Include="Furly.Extensions.AspNetCore" Version="1.0.67" />
<PackageReference Include="Furly.Extensions.Mqtt" Version="1.0.67" />
<PackageReference Include="Furly.Extensions.Dapr" Version="1.0.67" />
<PackageReference Include="Furly.Extensions.MessagePack" Version="1.0.67" />
<PackageReference Include="Furly.Azure.EventHubs" Version="1.0.67" />
<PackageReference Include="Furly.Azure.IoT" Version="1.0.67" />
<PackageReference Include="Azure.Identity" Version="1.12.0" />
<PackageReference Include="Azure.Core" Version="1.42.0" />
<PackageReference Include="Furly.Tunnel" Version="1.0.66" />
<PackageReference Include="Furly.Tunnel" Version="1.0.67" />
<PackageReference Include="Mono.Options" Version="6.12.0.148" />
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.9.0" />
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.9.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Furly.Extensions.Newtonsoft" Version="1.0.66" />
<PackageReference Include="Furly.Tunnel" Version="1.0.66" />
<PackageReference Include="Furly.Extensions" Version="1.0.66" />
<PackageReference Include="Furly.Extensions.Newtonsoft" Version="1.0.67" />
<PackageReference Include="Furly.Tunnel" Version="1.0.67" />
<PackageReference Include="Furly.Extensions" Version="1.0.67" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="8.0.0" />
<PackageReference Include="System.Runtime.Loader" Version="4.3.0" />
<PackageReference Include="Furly.Azure.KeyVault" Version="1.0.66" />
<PackageReference Include="Furly.Azure.KeyVault" Version="1.0.67" />
<PackageReference Include="Azure.Identity" Version="1.12.0" />
<PackageReference Include="Azure.Core" Version="1.42.0" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" Version="8.0.8" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson" Version="8.0.8" />
<PackageReference Include="System.Text.Json" Version="8.0.4" />
<PackageReference Include="Furly.Extensions.MessagePack" Version="1.0.66" />
<PackageReference Include="Furly.Extensions.Newtonsoft" Version="1.0.66" />
<PackageReference Include="Furly.Extensions.Autofac" Version="1.0.66" />
<PackageReference Include="Furly.Extensions" Version="1.0.66" />
<PackageReference Include="Furly.Extensions.MessagePack" Version="1.0.67" />
<PackageReference Include="Furly.Extensions.Newtonsoft" Version="1.0.67" />
<PackageReference Include="Furly.Extensions.Autofac" Version="1.0.67" />
<PackageReference Include="Furly.Extensions" Version="1.0.67" />
<PackageReference Include="Nito.Disposables" Version="2.5.0" />
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
<PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.9.0" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.9.0" />
<PackageReference Include="OpenTelemetry.Instrumentation.Runtime" Version="1.9.0" />
<PackageReference Include="Furly.Extensions.AspNetCore" Version="1.0.66" />
<PackageReference Include="Furly.Extensions.MessagePack" Version="1.0.66" />
<PackageReference Include="Furly.Azure.KeyVault" Version="1.0.66" />
<PackageReference Include="Furly.Extensions.AspNetCore" Version="1.0.67" />
<PackageReference Include="Furly.Extensions.MessagePack" Version="1.0.67" />
<PackageReference Include="Furly.Azure.KeyVault" Version="1.0.67" />
<PackageReference Include="Azure.Identity" Version="1.12.0" />
<PackageReference Include="Azure.Core" Version="1.42.0" />
<PackageReference Include="Nito.AsyncEx" Version="5.1.2" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Furly.Azure.IoT" Version="1.0.66" />
<PackageReference Include="Furly.Azure.IoT" Version="1.0.67" />
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="8.0.0" />
<PackageReference Include="System.IO.FileSystem" Version="4.3.0" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<EmbeddedResource Include="Generated\Boiler\Design\Boiler.PredefinedNodes.uanodes" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Furly.Extensions" Version="1.0.66" />
<PackageReference Include="Furly.Extensions" Version="1.0.67" />
<PackageReference Include="System.IO.Pipelines" Version="8.0.0" />
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
<PackageReference Include="System.Text.Json" Version="8.0.4" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Furly.Extensions.Newtonsoft" Version="1.0.66" />
<PackageReference Include="Furly.Extensions.Json" Version="1.0.66" />
<PackageReference Include="Furly.Extensions.Autofac" Version="1.0.66" />
<PackageReference Include="Furly.Extensions.Newtonsoft" Version="1.0.67" />
<PackageReference Include="Furly.Extensions.Json" Version="1.0.67" />
<PackageReference Include="Furly.Extensions.Autofac" Version="1.0.67" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Diagnostics.ResourceMonitoring" Version="8.8.0" />
<PackageReference Include="Nito.AsyncEx" Version="5.1.2" />
<PackageReference Include="Furly.Azure.IoT.Edge" Version="1.0.66" />
<PackageReference Include="Furly.Azure.IoT.Edge" Version="1.0.67" />
<PackageReference Include="Irony" Version="1.5.1" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Client.ComplexTypes" Version="1.5.374.78" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Client" Version="1.5.374.78" />
Expand Down
2 changes: 1 addition & 1 deletion src/Azure.IIoT.OpcUa/src/Azure.IIoT.OpcUa.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageReference Include="Apache.Avro" Version="1.12.0" />
<PackageReference Include="System.Text.Json" Version="8.0.4" />
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="3.0.1" />
<PackageReference Include="Furly.Extensions" Version="1.0.66" />
<PackageReference Include="Furly.Extensions" Version="1.0.67" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Core" Version="1.5.374.78" />
</ItemGroup>
<ItemGroup>
Expand Down
47 changes: 46 additions & 1 deletion src/Azure.IIoT.OpcUa/src/Extensions/StringEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,62 @@ public static string ToSha1Hash(this string str)
return Encoding.UTF8.GetBytes(str).ToSha1Hash();
}

/// <summary>
/// Hashes the string
/// </summary>
/// <param name="str">string to hash</param>
/// <returns></returns>
public static string ToSha2Hash(this string str)
{
return Encoding.UTF8.GetBytes(str).ToSha2Hash();
}

/// <summary>
/// Create guid from string using sha2
/// </summary>
/// <param name="str"></param>
/// <returns></returns>
public static Guid ToGuid(this string? str)
{
if (string.IsNullOrWhiteSpace(str))
{
return Guid.Empty;
}
return new Guid(SHA256.HashData(Encoding.UTF8.GetBytes(str)).AsSpan().Slice(0, 16));
}

/// <summary>
/// Create Uuid from string using sha2
/// </summary>
/// <param name="str"></param>
/// <returns></returns>
public static Opc.Ua.Uuid ToUuid(this string? str)
{
return (Opc.Ua.Uuid)ToGuid(str);
}

/// <summary>
/// Hashes the string
/// </summary>
/// <param name="bytestr">string to hash</param>
/// <returns></returns>
[Diagnostics.CodeAnalysis.SuppressMessage("Security", "CA5350:Do Not Use Weak Cryptographic Algorithms",
Justification = "SHA1 not used for crypto operation.")]
Justification = "SHA1 not used for crypto operation.")]
public static string ToSha1Hash(this byte[] bytestr)
{
var hash = SHA1.HashData(bytestr);
return hash.ToBase16String(false);
}

/// <summary>
/// Hashes the string
/// </summary>
/// <param name="bytestr">string to hash</param>
/// <returns></returns>
public static string ToSha2Hash(this byte[] bytestr)
{
var hash = SHA256.HashData(bytestr);
return hash.ToBase16String(false);
}
}
}
2 changes: 1 addition & 1 deletion src/Azure.IIoT.OpcUa/tests/Azure.IIoT.OpcUa.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Furly.Extensions.Newtonsoft" Version="1.0.66" />
<PackageReference Include="Furly.Extensions.Newtonsoft" Version="1.0.67" />
<PackageReference Include="JsonSchema.Net" Version="7.2.2" />
<PackageReference Include="Microsoft.Json.Schema" Version="2.3.0" />
</ItemGroup>
Expand Down

0 comments on commit 543bfca

Please sign in to comment.