Use MD5 hashing from MyConvert NuGet package instead of xBrainLab.Security.Cryptography.dll

Closes #35
This commit is contained in:
Rikki Tooley 2014-11-09 22:55:22 +00:00
parent 3e8bfe7351
commit 574f99bc0c
4 changed files with 9 additions and 5 deletions

View File

@ -2,10 +2,10 @@
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Arcnet.MyConvert;
using IF.Lastfm.Core.Api.Commands.AuthApi; using IF.Lastfm.Core.Api.Commands.AuthApi;
using IF.Lastfm.Core.Api.Helpers; using IF.Lastfm.Core.Api.Helpers;
using IF.Lastfm.Core.Objects; using IF.Lastfm.Core.Objects;
using xBrainLab.Security.Cryptography;
namespace IF.Lastfm.Core.Api namespace IF.Lastfm.Core.Api
{ {
@ -74,7 +74,10 @@ public string GenerateMethodSignature(string method, Dictionary<string, string>
builder.Append(_apiSecret); builder.Append(_apiSecret);
return MD5.GetHashString(builder.ToString()); var md5 = builder.ToString().ToMd5();
return md5;
} }
} }
} }

View File

@ -107,6 +107,9 @@
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Reference Include="MyConvert">
<HintPath>..\..\packages\MyConvert.1.0.1.6\lib\MyConvert.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json"> <Reference Include="Newtonsoft.Json">
<HintPath>..\..\packages\Newtonsoft.Json.6.0.5\lib\portable-net45+wp80+win8+wpa81\Newtonsoft.Json.dll</HintPath> <HintPath>..\..\packages\Newtonsoft.Json.6.0.5\lib\portable-net45+wp80+win8+wpa81\Newtonsoft.Json.dll</HintPath>
</Reference> </Reference>
@ -119,9 +122,6 @@
<Reference Include="System.Net.Http.Primitives"> <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> <HintPath>..\..\packages\Microsoft.Net.Http.2.2.28\lib\portable-net40+sl4+win8+wp71+wpa81\System.Net.Http.Primitives.dll</HintPath>
</Reference> </Reference>
<Reference Include="xBrainLab.Security.Cryptography">
<HintPath>..\..\lib\xBrainLab.Security.Cryptography.dll</HintPath>
</Reference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="app.config" /> <None Include="app.config" />

View File

@ -3,5 +3,6 @@
<package id="Microsoft.Bcl" version="1.1.9" targetFramework="portable-net45+win+wpa81+wp80" /> <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.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="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" /> <package id="Newtonsoft.Json" version="6.0.5" targetFramework="portable-net45+win+wpa81+wp80" />
</packages> </packages>