# Is there a DAML library I can use to verify an RSA signature using a private key?

**URL:** <https://forum.canton.network/t/is-there-a-daml-library-i-can-use-to-verify-an-rsa-signature-using-a-private-key/2521>\
**Category:** App Development\
**Created:** [April 26, 2021, 3:54pm UTC](https://forum.canton.network/t/is-there-a-daml-library-i-can-use-to-verify-an-rsa-signature-using-a-private-key/2521 "2021-04-26T15:54:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![anthony](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/anthony/32/419_2.png) [@anthony](https://forum.canton.network/u/anthony)\
**Post date:** [April 26, 2021, 6:10pm UTC](https://forum.canton.network/t/is-there-a-daml-library-i-can-use-to-verify-an-rsa-signature-using-a-private-key/2521/2 "2021-04-26T18:10:03Z")

</div>

Other than using `Text.sha256` to hash a `String` there’s no other cryptographic primitives in Daml and it’s best to rely on Daml’s built in signatory functionality. Do you have a specific usecase where you’re trying to do this?

> [@Cryptographic primitives in DAML](https://discuss.daml.com/t/cryptographic-primitives-in-daml/503):
>
> What cryptographic primitives are available natively in DAML? I’ve seen that there’s Text.sha256 to compute the SHA-256 digest of a string. Are there primitives for other cryptographic operations such as signatures or symmetric / asymmetric encryption available in DAML? If not, are there any libraries for such operations available?

---

_[View the full topic](https://forum.canton.network/t/is-there-a-daml-library-i-can-use-to-verify-an-rsa-signature-using-a-private-key/2521)._
