# How to realize encrypt rsa and decryped hex?

**URL:** <https://discourse.nodered.org/t/how-to-realize-encrypt-rsa-and-decryped-hex/92628>\
**Category:** Developing Nodes\
**Created:** [24 October 2024 09:58 UTC](https://discourse.nodered.org/t/how-to-realize-encrypt-rsa-and-decryped-hex/92628 "2024-10-24T09:58:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rpa](https://avatars.discourse-cdn.com/v4/letter/r/e8c25b/32.png) [@rpa](https://discourse.nodered.org/u/rpa)\
**Post date:** [24 October 2024 09:58 UTC](https://discourse.nodered.org/t/how-to-realize-encrypt-rsa-and-decryped-hex/92628/1 "2024-10-24T09:58:31Z")

</div>

The information from the nitifire: The Challenge-String is a random generated secret string that is encrypted via RSA using the pre-installed Public Key and then hex-encoded for transmission. To Solve the Challenge, the Client has to strip the hex-encoding, then decrypt the Challenge-String with the Corresponding Private Key, and send the decoded string back to the Server (without any further encoding). If the decrypted String matches the original secret string, a short-lived access token will be provided.

How to do this? The signe is doing and i become the challenge string but i have no solution for solve the challenge...

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [24 October 2024 10:17 UTC](https://discourse.nodered.org/t/how-to-realize-encrypt-rsa-and-decryped-hex/92628/2 "2024-10-24T10:17:21Z")

</div>

Can you add some more context here.

I assume this is part of a HTTP request response to/from a nitifire service? But as it is there is not enough information to give a proper answer.

---

<div class="post-metadata">

**Author:** ![rpa](https://avatars.discourse-cdn.com/v4/letter/r/e8c25b/32.png) [@rpa](https://discourse.nodered.org/u/rpa)\
**Post date:** [25 October 2024 06:15 UTC](https://discourse.nodered.org/t/how-to-realize-encrypt-rsa-and-decryped-hex/92628/3 "2024-10-25T06:15:33Z")

</div>

[[Loading...](https://external.dev.apidoc.vetvi.se/#api-Service_Accounts_-_Sign_In-A_Create_a_new_Sign-In_Challenge)]

The first step `/api/sa_login/challenge/new`is doing and i become the Success 200 bit the next steps solve und permission is not doing. I dont understand to realize this with the rsa and hex decoding.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [24 December 2024 06:15 UTC](https://discourse.nodered.org/t/how-to-realize-encrypt-rsa-and-decryped-hex/92628/4 "2024-12-24T06:15:35Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
