# sha512

sha512() function is the Standard function available in 200OK.

**Description** : The sha512 function calculates the SHA512 hash of the input string, resulting in a 128-character hexadecimal representation. This cryptographic hash function generates a unique fixed-size hash value from the input data, providing a secure means of data integrity and password hashing.

**Syntax** : fx\_sha512(string)

**Example** : when applied to the string 'hello', fx\_sha512('hello') returns '9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043'.

Here we go with simple scenario using the above function.

**Scenario** : In a secure authentication system, user passwords are hashed for enhanced data protection. The system employs the fx\_sha512 function to convert passwords into unique hexadecimal representations, ensuring confidentiality and integrity of sensitive data. For instance, hashing the password 'hello' using fx\_sha512('hello') yields a 128-character hexadecimal string, bolstering security in user authentication processes.

<br>

**Request Side** :&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/UsKbMCD5pzsJiFIPz82VhgJQ9fqFi-M7VdrWdmC2sUlZtPVTzonVDjO8a1p78HgffAEEkp859TN3xIs816U6ujrzymSGybqRgRregCP8MzLR0IR7Me5cKEipJ8Lrf7NN2rhUDeLnBDktOxWO1Q5DuM0" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/Hlit2nOXtCM3J-KnDlm7z3y186SeJ_-CWbUwjPczRuu0h1fCXDqyFjZ8z7g-ACViSxfbIm-OMwihbFOYK6O94arKStPqaDjEaRO_Xq6X0XN8y9JayDDSugcYhIMKO_WjrYmR8u_PYepY_4MXDlSL5vI" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/_sykwgjcISBid7mN-Pqo9M2vES_1gYkUkjsjMr4Rlp78Tg6PtCbHMH2a66VqRINPCJKT5WQhGGsGjTi-pJjAWznwO3AymuSWUpbEueGVU_MKDAq1GDjdIiEjdSqHzaSn7rvXwXWNUx9rEQRRx1WdnUs" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/3fSu6WWg4VhamBDWQEm9zSnCXUftrqYtKGNhoJxvF9gAa6bohpo2u631wP_kx6ajiKU3BwzEtaDTbyTtlpHT7DKIujvveHmf4mvvh3eq9PN-f7Z0A8otKApLuVoCLMMPQ3CUQ9jc8J3KIS8sQJ-ZGH8" alt=""><figcaption></figcaption></figure>

**Response Side** :&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/G6tW7YPMIqDKJVJADLTuCbqWKNWg_HrQhdcePAYTIFSBk3zlojRSdZEZgUrOEN_qWQgNF0wYPuGLNrj3mK9AD7wC0RoXoNIlkdsA202Sj9Kwx1UHMMtnP9WCEQD9pCKQrSsZ8xFVWBZcapfa2DBNxao" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/S25O0vE8zsyF24up117QpNgOWyCDIgREo63LyHXnmXbMf47YjoJieFpQLhQJq1TyehQra_xy6xmZVg_soeyePs6udsIyzhav2GmRBRJ0NS3ZTPFvmaUHaMMBBLb0omhrHAZGvdxJTJjZGkpeVa0FunE" alt=""><figcaption></figcaption></figure>
