[solved] Encrypt with SHA-1

ta5ta5 Member Posts: 1,164
Hi
We need to encrypt a string with SHA-1 to send it to a webservice.
Has anybody done this in Navision (I'm not sure this is possible at all) or somebody knows a software that could be used as automation object?

Thanks in advance
Thomas

Comments

  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    ta5 wrote:
    Hi
    We need to encrypt a string with SHA-1 to send it to a webservice.
    1. Just to rectify things: SHA-1 is not an encryption alghoritm.

    2. Use google - there is a plenty of SHA-1 source code examples, or search Microsoft for use CryptoAPI

    3. build your own .NET assembly following the Mibuso example

    4. Publish it in download section :)

    Regards,
    Slawek
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • ta5ta5 Member Posts: 1,164
    I'll probably use a 3rd party component from Seekfordsolutions
    http://www.seekfordsolutions.com/Produc ... derWizard/
    my first tests to use it as OCX were ok.

    Regards
    Thomas
  • resharper20resharper20 Member Posts: 1
    ta5, have you examples of EncoderWizard using in NAV?

    We need to encrypt a string with SHA-1 in NAV 2009 classic
    I can t understand how to invoke SHA-1 Encription Method (((
  • ta5ta5 Member Posts: 1,164
    Hi Resharper
    Long time ago, have that code not available anymore, sorry. But if I remember correctly, we used the Seekford-Tools, see link above.
    Btw: I know, this is not what you probably want to hear, but it is highly recommended to plan an upgrade. ;)
    Regards
    Thomas
Sign In or Register to comment.