mirror of
https://github.com/Sarsoo/IF.Lastfm.git
synced 2024-10-17 07:13:09 +01:00
Use MD5 hashing from MyConvert NuGet package instead of xBrainLab.Security.Cryptography.dll
Closes #35
This commit is contained in:
parent
3e8bfe7351
commit
574f99bc0c
Binary file not shown.
@ -2,10 +2,10 @@
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Arcnet.MyConvert;
|
||||
using IF.Lastfm.Core.Api.Commands.AuthApi;
|
||||
using IF.Lastfm.Core.Api.Helpers;
|
||||
using IF.Lastfm.Core.Objects;
|
||||
using xBrainLab.Security.Cryptography;
|
||||
|
||||
namespace IF.Lastfm.Core.Api
|
||||
{
|
||||
@ -74,7 +74,10 @@ public string GenerateMethodSignature(string method, Dictionary<string, string>
|
||||
|
||||
builder.Append(_apiSecret);
|
||||
|
||||
return MD5.GetHashString(builder.ToString());
|
||||
var md5 = builder.ToString().ToMd5();
|
||||
|
||||
return md5;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -107,6 +107,9 @@
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="MyConvert">
|
||||
<HintPath>..\..\packages\MyConvert.1.0.1.6\lib\MyConvert.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json">
|
||||
<HintPath>..\..\packages\Newtonsoft.Json.6.0.5\lib\portable-net45+wp80+win8+wpa81\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
@ -119,9 +122,6 @@
|
||||
<Reference Include="System.Net.Http.Primitives">
|
||||
<HintPath>..\..\packages\Microsoft.Net.Http.2.2.28\lib\portable-net40+sl4+win8+wp71+wpa81\System.Net.Http.Primitives.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="xBrainLab.Security.Cryptography">
|
||||
<HintPath>..\..\lib\xBrainLab.Security.Cryptography.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="app.config" />
|
||||
|
@ -3,5 +3,6 @@
|
||||
<package id="Microsoft.Bcl" version="1.1.9" targetFramework="portable-net45+win+wpa81+wp80" />
|
||||
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="portable-net45+win+wpa81+wp80" />
|
||||
<package id="Microsoft.Net.Http" version="2.2.28" targetFramework="portable-net45+win+wpa81+wp80" />
|
||||
<package id="MyConvert" version="1.0.1.6" targetFramework="portable-net45+win+wpa81+wp80" />
|
||||
<package id="Newtonsoft.Json" version="6.0.5" targetFramework="portable-net45+win+wpa81+wp80" />
|
||||
</packages>
|
Loading…
Reference in New Issue
Block a user