How To do Hashing HMAC RSA 1 algorithm or cryptography in Microsoft Business Central | AL Code

HMAC RSA-1 Hashing In AL code | Cryptography Management in Business Central
| O AUTH 1.0 Signature Making in Business Central

I came up to an requirement of consuming Rest api with O Auth 1.0 authentication in Business Central AL Code and ended up on a point where i have to do some hashing with some defined algorithm to make signature key for my request...
 ðŸ˜’ Don't be upset with my story simple is that just do cryptography just by passing your text and password and algorithm of your choice.

Read more for the available functions available as cryptography management Code Unit in BC | AL
action(hash)
 {
ApplicationArea = All;

   trigger OnAction()
     var
     CryptographyManagement: Codeunit "Cryptography Management";
     HashAlgorithmType: Option MD5,SHA1,SHA256,SHA384,SHA512;

 begin
    Message('Decrypt %1'
    CryptographyManagement.GenerateHash('sss''sss', HashAlgorithmType::SHA1));
 end;

            }

Comments

Popular posts from this blog

Reading json data in Business Central

Consume Rest API in Business Central Code with Basic Auth