From GT-MP
Jump to: navigation, search
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#

Hashes a string with SHA256 method.
It should be used for storing passwords or any other data which have to be secured.


API.getHashSHA256(string someText);

Required Arguments

  • someText: parameter input should be in string type.

NOTE: This function returns data in string type.

Usage example(s)

   // For security reasons you should use a salt to encrypt a string when you use it for passwords
   string sometext = "someText"; // eg password
   string salt = "someSalt";
   string securestring = API.getHashSHA256(salt + sometext);