Hash.String 1.1.3

Suggested Alternatives

Hash.String 1.1.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package Hash.String --version 1.1.3                
NuGet\Install-Package Hash.String -Version 1.1.3                
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="Hash.String" Version="1.1.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Hash.String --version 1.1.3                
#r "nuget: Hash.String, 1.1.3"                
#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 Hash.String as a Cake Addin
#addin nuget:?package=Hash.String&version=1.1.3

// Install Hash.String as a Cake Tool
#tool nuget:?package=Hash.String&version=1.1.3                

This package adds 4 fucntions to your .net code Setup, Login, Validate and HashString.

The setup function[Hash.Setup()] takes 1 argument and that is the name of the .txt file which will store your username and password in encrypted form.

The Login function[Hash.Login()] takes 2 arguments, the username and passcode. This function encrypts hashes the username and passcode and checks it against the hashed usernames and passcodes held in the .txt file specified using the setup function.

The Validate function[Hash.Validate()] also takes 2 arguments and does the same thing as the login function, but it doesn't hash the inputed usernames and passwords so you should only use this function if you already hashed the inputed usernames and passcodes using the HashString function.

The HashString[Hash.HashString()] Function takes 1 argument and that is the string you want to hash. It simply returns the hashed version of the string.

PLEASE NOTE: The Passwords inputed into the .txt file must be hashed through the same method this program hashes it in. If you want to hardcode usernames and passwords into the .txt file please either use the website hash.somee.com or use the .cs file named string hash in our github repo.

PLEASE NOTE: In the .txt file, the hashed username should be written on the first line, with no spaces before it, and the passcode should be written in the same way but on the following line. If you need more than one username and password, place the new set of login credentials on the two lines following the first username and passcode making sure there aren't any spaces or line breaks.

PLEASE NOTE: The .txt file must be set to COPY ALWAYS under copy to output directory in properties.

PLEASE NOTE: If you do not complete the setup function, Hash.Login() and Hash.Validate() will always come out null.

PLEASE NOTE: For this package to work, you must add the following using directive to the top of your code, or above your namespace: using String.Hash;

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.