# Help to integrate the ChilkatDelphiXE.dll Crypt2 functionality in Legacy Clarion6

**URL:** <https://clarionhub.com/t/help-to-integrate-the-chilkatdelphixe-dll-crypt2-functionality-in-legacy-clarion6/2434>\
**Category:** tips\
**Created:** [February 16, 2019, 8:25pm UTC](https://clarionhub.com/t/help-to-integrate-the-chilkatdelphixe-dll-crypt2-functionality-in-legacy-clarion6/2434 "2019-02-16T20:25:03Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![RaFaeL](https://clarionhub.com/user_avatar/clarionhub.com/rafael/32/476_2.png) [@RaFaeL](https://clarionhub.com/u/RaFaeL)\
**Post date:** [February 16, 2019, 8:49pm UTC](https://clarionhub.com/t/help-to-integrate-the-chilkatdelphixe-dll-crypt2-functionality-in-legacy-clarion6/2434/3 "2019-02-16T20:49:18Z")

</div>

OpenSSL

```
 MODULE('libeay32.dll')
  SHA256(LONG buffer, LONG bufferlen, LONG outstr),RAW,C,NAME('SHA256')
 END

   Hash_SHA256 procedure(string str_)

    LOC:Ret CSTRING(65)
    LOC:SHA256 CSTRING(33)

     CODE

      SHA256(address(Str_),len(clip(Str_)),address(LOC:SHA256))

      loop i# = 1 to 32
        LOC:Ret = LOC:Ret & bytetohex(val(LOC:SHA256[i#]), 1)
      end

      return LOC:Ret

```

---

_[View the full topic](https://clarionhub.com/t/help-to-integrate-the-chilkatdelphixe-dll-crypt2-functionality-in-legacy-clarion6/2434)._
