title: Is there an R function to unhash data (equivalent to 'hashlib' function in Python)?
body: <p>I am trying to get an SHA-256 hash of the password. I have both the zip file where hashed data is located, and the password.</p>
  
  <p>Trying to achieve something like the below in R but can't find any suitable function to programmatically retrieve the data.</p>
  
  <pre><code># Declaring the Password
  password = "XXXX"
  data = "data.zip"
  
  # Obtaining an SHA-256 hash of the password
  import hashlib
  value = hashlib.sha256(str.encode(password)).hexdigest().lower()
  </code></pre>
  
  <p>Thanks</p>