Vely logo Empower C
install  tutorials  examples
documentation  license  about

12.1.0 released on Sep 19, 2022

hash-string



PURPOSE:


Hash a string.

SYNTAX:


hash-string <string> to [ define ] <result>


DESCRIPTION:


hash-string produces SHA256 hash of <string> and stores the result into <result> which can be created with optional "define". The result is null-terminated and always 64 bytes in length.

Hashing is commonly used in login security modules - passwords are often hashed, and only the hash is kept. This way, plain password is never kept and never encrypted either - only one-way derivative of it is kept.

EXAMPLES:


String "hash" will have hashed value of the given string, an example of which might look like "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855":
hash-string "hello world" to define hash


SEE ALSO:


Encryption ( decrypt-data   encrypt-data   hash-string   random-string  )  SEE ALL (documentation)



Copyright (c) 2022 DaSoftver LLC. Vely is a trademark of Dasoftver LLC. The software and information herein are provided "AS IS" and without any warranties or guarantees of any kind. Icons copyright PaweĊ‚ Kuna licensed under MIT. This web page is licensed under CC-BY-SA-4.0.