EVOLUTION-MANAGER
Edit File: hash_sha256.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: SHA-256 hash</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for hash_sha256 {cli}"><tr><td>hash_sha256 {cli}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>SHA-256 hash</h2> <h3>Description</h3> <p>Calculate the SHA-256 hash of each element of a character vector. </p> <h3>Usage</h3> <pre> hash_sha256(x) hash_raw_sha256(x) hash_obj_sha256(x, serialize_version = 2) hash_file_sha256(paths) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>Character vector. If not a character vector, then <code><a href="../../base/html/character.html">as.character()</a></code> is used to try to coerce it into one. <code>NA</code> entries will have an <code>NA</code> hash.</p> </td></tr> <tr valign="top"><td><code>serialize_version</code></td> <td> <p>Workspace format version to use, see <code><a href="../../base/html/serialize.html">base::serialize()</a></code>.</p> </td></tr> <tr valign="top"><td><code>paths</code></td> <td> <p>Character vector of file names.</p> </td></tr> </table> <h3>Details</h3> <p><code>hash_raw_sha256()</code> calculates the SHA-256 hash of the bytes of a raw vector. </p> <p><code>hash_obj_sha256()</code> calculates the SHA-256 hash of an R object. The object is serialized into a binary vector first. </p> <p><code>hash_file_sha256()</code> calculates the SHA-256 hash of one or more files. </p> <h3>Value</h3> <p><code>hash_sha256()</code> returns aharacter vector of hexadecimal SHA-256 hashes. </p> <p><code>hash_raw_sha256()</code> returns a character scalar. </p> <p><code>hash_obj_sha256()</code> returns a character scalar. </p> <p><code>hash_file_sha256()</code> returns a character vector of SHA-256 hashes. </p> <h3>See Also</h3> <p>Other hash functions: <code><a href="hash_animal.html">hash_animal</a>()</code>, <code><a href="hash_emoji.html">hash_emoji</a>()</code>, <code><a href="hash_md5.html">hash_md5</a>()</code> </p> <h3>Examples</h3> <pre> hash_sha256(c("foo", NA, "bar", "")) </pre> <hr /><div style="text-align: center;">[Package <em>cli</em> version 3.4.1 <a href="00Index.html">Index</a>]</div> </body></html>