-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imp - brk|doc - Moved MD5 to its own addon
--- We've moved the MD5 algorithm from built-in to its own addon. --- Type: imp Breaking: True Doc Required: True Part: 1/1
- Loading branch information
Showing
11 changed files
with
132 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
public/Nitrocid.Addons/Nitrocid.Extras.Md5/AddonMetadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"DllPath": "Nitrocid.Extras.Md5.dll" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// | ||
// Nitrocid KS Copyright (C) 2018-2024 Aptivi | ||
// | ||
// This file is part of Nitrocid KS | ||
// | ||
// Nitrocid KS is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// Nitrocid KS is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY, without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
// | ||
|
||
using Nitrocid.Drivers; | ||
using Nitrocid.Drivers.Encryption; | ||
using Nitrocid.Kernel.Extensions; | ||
using Nitrocid.Modifications; | ||
using System; | ||
using System.Collections.ObjectModel; | ||
using System.Reflection; | ||
|
||
namespace Nitrocid.Extras.Md5 | ||
{ | ||
internal class Md5Init : IAddon | ||
{ | ||
private readonly MD5 singleton = new(); | ||
|
||
string IAddon.AddonName => | ||
InterAddonTranslations.GetAddonName(KnownAddons.ExtrasMd5); | ||
|
||
ModLoadPriority IAddon.AddonType => ModLoadPriority.Optional; | ||
|
||
ReadOnlyDictionary<string, Delegate> IAddon.PubliclyAvailableFunctions => null; | ||
|
||
ReadOnlyDictionary<string, PropertyInfo> IAddon.PubliclyAvailableProperties => null; | ||
|
||
ReadOnlyDictionary<string, FieldInfo> IAddon.PubliclyAvailableFields => null; | ||
|
||
void IAddon.FinalizeAddon() | ||
{ } | ||
|
||
void IAddon.StartAddon() => | ||
DriverHandler.RegisterBaseDriver<IEncryptionDriver>(singleton); | ||
|
||
void IAddon.StopAddon() => | ||
DriverHandler.UnregisterBaseDriver<IEncryptionDriver>(singleton.DriverName); | ||
} | ||
} |
57 changes: 57 additions & 0 deletions
57
public/Nitrocid.Addons/Nitrocid.Extras.Md5/Nitrocid.Extras.Md5.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<!-- Extras.Md5 addon General Information --> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DefineTrace>true</DefineTrace> | ||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | ||
<Deterministic>true</Deterministic> | ||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<OutputPath>..\..\Nitrocid\KSBuild\$(TargetFramework)\Addons\Extras.Md5</OutputPath> | ||
<Description>Nitrocid KS Extras - MD5</Description> | ||
<AssemblyTitle>Nitrocid KS Extras - MD5</AssemblyTitle> | ||
<Copyright>Copyright © Aptivi 2018 - 2024</Copyright> | ||
<Company>Aptivi</Company> | ||
<Product>Nitrocid</Product> | ||
<Version>0.1.0</Version> | ||
<Configurations>Debug;Release</Configurations> | ||
<LangVersion>latest</LangVersion> | ||
<GenerateDocumentationFile>True</GenerateDocumentationFile> | ||
<SignAssembly>True</SignAssembly> | ||
<AssemblyOriginatorKeyFile>..\..\..\aptivi_snk.snk</AssemblyOriginatorKeyFile> | ||
</PropertyGroup> | ||
<!-- Extras.Md5 addon General Information End --> | ||
|
||
<!-- Extras.Md5 addon Platform Information --> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugType>portable</DebugType> | ||
<DefineDebug>true</DefineDebug> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>pdbonly</DebugType> | ||
<DefineDebug>false</DefineDebug> | ||
<Optimize>true</Optimize> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\Nitrocid\Nitrocid.csproj" Private="false" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Update="AddonMetadata.json"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
<!-- Extras.Md5 addon Platform Information End --> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" /> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
<EmbedUntrackedSources>true</EmbedUntrackedSources> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters