MagmaMc.JEF 4.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package MagmaMc.JEF --version 4.0.0                
NuGet\Install-Package MagmaMc.JEF -Version 4.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MagmaMc.JEF" Version="4.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MagmaMc.JEF --version 4.0.0                
#r "nuget: MagmaMc.JEF, 4.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MagmaMc.JEF as a Cake Addin
#addin nuget:?package=MagmaMc.JEF&version=4.0.0

// Install MagmaMc.JEF as a Cake Tool
#tool nuget:?package=MagmaMc.JEF&version=4.0.0                

MagmaMc.JEF (Just Enough Functions)

Classes/Functions

Administrator

  • IsElevated(): checks if the current program running function is elevated (.NET 4.0+ or .NET 6.0+).
  • IsUserAdministrator(): checks if the current user running the program is an administrator (.NET 4.0+ or .NET 6.0+).

Disk

  • CreatePartition(short DiskNumber = 0, int partitionSizeInGB = 1, char DriveLetter = 'e'): creates a partition on the hard disk.

CMD

  • ExecuteCommand(string Command, bool Administrator = false, bool WaitForExit = false, string username = null, string password = null): executes a command in the command prompt and returns the output.
  • CreateService(string serviceName, string displayName, string binPath, ServiceStartType startType, ServiceAccount serviceAccount, string username = null, string password = null, string description = null): This function creates a Windows service using sc.exe

Windows

  • DoesProcessHaveWindow(Process externalProcess): checks if a process has a window or is in the background.
  • HideWindow(IntPtr Window): hides a window.
  • MaximizeWindow(IntPtr Window): maximizes a window.
  • MinimizeWindow(IntPtr Window): minimizes a window.
  • RestoreWindow(IntPtr Window): restores a window.
  • ShowWindow(IntPtr Window): shows a window.

Security

  • ShA1Hash(string input): Computes the SHA-1 hash for a given string input.
  • ShA256Hash(string input): Computes the SHA-256 hash for a given string input.
  • MD5Hash(string input): Computes the MD5 hash for a given string input.
  • Base64Encode(string input): Encodes a given string input into a Base64 string.
  • Base64Decode(string input): Decodes a given Base64 string into a plain text string.
  • ConvertStringToSecure(string input): Converts a plain text string into a secure string, which can be used to store passwords and other sensitive information securely in memory.

Lists

  • IsInList<T>(List<T> Array, T Value, bool DefualtValue = false): Checks if a given value is present in the input list. It returns a boolean value indicating if the value is present or not. If the value is not present, the function returns the default value.
  • GetValueFromListKey<T>(List<T> List, string include): Checks whether a given list contains a key and returns the value associated with that key. It returns a string value representing the value associated with the specified key if it is present in the input list. If the specified key is not present in the input list, the function returns the default value.
  • DoesKeyStartWith<T>(List<T> List, string include):Checks whether a given list contains a key that starts with a specified value. It returns a boolean value indicating whether a key starting with the specified value is present or not.

License

JEF is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net35 is compatible.  net40 was computed.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 3.5

    • No dependencies.
  • .NETFramework 4.6.2

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MagmaMc.JEF:

Package Downloads
MagmaMc.UAS

A Library Containing all scripts for Magma's Universal Account System

GitHub repositories

This package is not used by any popular GitHub repositories.

Version 4.0.0;
     * Updated README.MD
     * Added Better Documentation
     * Added SHA256,
     * Added CreateService
     * Added GenerateHex
     * Updated UUID
     * Removed Audio Use NAudio