title: How to extract Base64 (not base64 encoding) value from SHA-256 hash in jmeter?
body: <p>I have a test string &quot;abc&quot; on which I will be using SHA-256 Jmeter function (i.e. ${__digest(SHA-256,abc,,,)}) but this will only return the HEX value (i.e. &quot;ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad&quot;). I need the base64 value (i.e. &quot;ungWv48Bz+pBQUDeXa4iI7ADYaOWF3qctBD/YfIAFa0=&quot;) [which is different from the base64 encoded value]. Is there any way to convert a hex value to only base64 and not base64 encoded value ?</p>
  <p>For references see this site : <a href="https://hash.online-convert.com/sha256-generator" rel="nofollow noreferrer">https://hash.online-convert.com/sha256-generator</a></p>
  <p>And here are the results :</p>
  <ul>
  <li>hex: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad</li>
  <li>base64: <strong>ungWv48Bz+pBQUDeXa4iI7ADYaOWF3qctBD/YfIAFa0=</strong> (I need this value)</li>
  </ul>
  <p>Any help would be appreciated.</p>