ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. sha256

Function

sha256

Server and clientMiscellaneousIdentical to MTA:SA

Computes the SHA-256 hash of text (64 hex characters, upper case).

Syntax

string sha256(string str)

Arguments

strstring
The text.

Returns

The hash or false.

Example

local sum = sha256(fileGetContents("mapa.map") or "")

See also