EVOLUTION-MANAGER
Edit File: hash_md5.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: MD5 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_md5 {cli}"><tr><td>hash_md5 {cli}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>MD5 hash</h2> <h3>Description</h3> <p>Calculate the MD5 hash of each element of a character vector. </p> <h3>Usage</h3> <pre> hash_md5(x) hash_raw_md5(x) hash_obj_md5(x, serialize_version = 2) </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> </table> <h3>Details</h3> <p><code>hash_raw_md5()</code> calculates the MD5 hash of the bytes of a raw vector. </p> <p><code>hash_obj_md5()</code> calculates the MD5 hash of an R object. The object is serialized into a binary vector first. </p> <h3>Value</h3> <p><code>hash_md5()</code> returns a character vector of hexadecimal MD5 hashes. </p> <p><code>hash_raw_md5()</code> returns a character scalar. </p> <p><code>hash_obj_md5()</code> returns a character scalar. </p> <h3>See Also</h3> <p><code><a href="../../tools/html/md5sum.html">tools::md5sum()</a></code> for a base R MD5 function that works on files. </p> <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_sha256.html">hash_sha256</a>()</code> </p> <h3>Examples</h3> <pre> hash_md5(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>