sha256
Get sha256 checksum.
📝Syntax
hexa_hash = sha256(str)
hexa_hash = sha256(filename)
hexa_hash = sha256(str, '-file')
hexa_hash = sha256(str, '-string')
📥Input Arguments
Parameter Description
str a character vector, cell of string or array of strings: content of string will be hashed.
filename a string: existing filename: content of the file will be hashed.
'-file' or '-string' force to hash as file or string content.
📤Output Arguments
Parameter Description
hexa_hash a character vector, cell of string or array of strings: hashed result (checksum).
📄Description

sha256 get sha256 checksum.

💡Examples
R = sha256('Nelson')
R = sha256({'Hello', 'World'})
R = sha256(["Hello"; "World"])
R = sha256([modulepath('matio', 'tests'), '/mat/test_char_array_unicode_7.4_GLNX86.mat'])
R = sha256([modulepath('matio', 'tests'), '/mat/test_char_array_unicode_7.4_GLNX86.mat'], '-file')
R = sha256([modulepath('matio', 'tests'), '/mat/test_char_array_unicode_7.4_GLNX86.mat'], '-string')
🔗See Also
crc32
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub