Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Hash Problem Business Central

(1) ShareShare
ReportReport
Posted on by 119

Hello to everyone.
I had a problem with hashing data. I wanted to hash some Text combination of some fields, and signed with pfx certificate. I must import Hash data into xml : IICSignature tag 1106.Capture1.PNG
but I have problem because my hash function only return me maximum 128 characters, not 512 (specification needs 512).
This:
pastedimage1667916463189v1.png
I worked on NAV with dotnet but I don't have idea how this lines of code convert  to BC:
capt2.PNG

Can someone help me to find solution?  Post

  • Suggested answer
    asa Profile Picture
    66 on at
    Hash Problem Business Central
    Read InStream as byte and convert byte to hex and you should have your expected result.

    I used to read every instream byte then convert every byte to binary, binary to int and then int to hex for every byte u should have smth like 5F or FF or 00.
     
    Maybe there is a better way to do it, but i coludnt find smth else

    Thanks
  • Suggested answer
    Amit_Sharma Profile Picture
    2,545 on at
    RE: Hash Problem Business Central

    Hi,

    Refer the link

       

    Regards

    Amit Sharma

    www.erpconsultors.com

  • Suggested answer
    DAnny3211 Profile Picture
    9,274 Moderator on at
    RE: Hash Problem Business Central

    hi

    look this

    www.youtube.com/watch

    DAniele

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,245 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,927 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans