AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Suchfunktion Ergebnis der Suchanfrage

Ergebnis der Suchanfrage


Datum des Suchindex: Heute, 02:17

Parameter dieser Suchanfrage:

Suche in Thema: Hilfe bei Umstellung Unit DEC5.1 zu DEC6.0
Suche alle Beiträge, die von "Kas Ob." geschrieben wurden
• Suchmethode: "Suche nach allen Begriffen"
• Nach Datum (firstpost) sortiert
• Zeige Treffer als Beiträge
Zeige 10 von insges. 10 Treffern
Suche benötigte 0.000s

Es liegen Ergebnisse in folgenden Bereichen vor:

  • Forum: Programmieren allgemein

    AW: Hilfe bei Umstellung Unit DEC5.1 zu DEC6.0

      Delphi
      by Kas Ob., 30. Jan 2024
    Hard bug to catch !, i can't reproduce this so will move to divide and conquer, for that we need to separate the decryption from MAC calculation.

    Please try this, if you are in the mood to test deeper or you have time, this will show if the MAC is the failed point or not:
    unit Tools.Crypt;

    interface

    uses
    System.SysUtils, DECUtil, DECHash, DECCipherBase, DECCiphers, DECHashBase,
    ...
  • Forum: Programmieren allgemein

    AW: Hilfe bei Umstellung Unit DEC5.1 zu DEC6.0

      Delphi
      by Kas Ob., 29. Jan 2024
    Please try this:
    unit Tools.Crypt;

    interface

    uses
    System.SysUtils, DECUtil, DECHash, DECCipherBase, DECCiphers, DECHashBase,
    DECFormatBase, DECFormat, DECRandom, DECHashAuthentication;

    const
  • Forum: Programmieren allgemein

    AW: Hilfe bei Umstellung Unit DEC5.1 zu DEC6.0

      Delphi
      by Kas Ob., 29. Jan 2024
    Can you capture/log the exact SQL query when the exception happen ?

    I am sorry, can't understand the exception !, is it a fail to find parameter or something, like the there is SQL but broken !?

    Anyway, i suspect the use of RawByteString is and as always the root of evil, so i will adjust your code a little to remove this dependency as much as i can.

    ps: i asked for specific test vector...
  • Forum: Programmieren allgemein

    AW: Hilfe bei Umstellung Unit DEC5.1 zu DEC6.0

      Delphi
      by Kas Ob., 28. Jan 2024
    Here this is the smallest workaround the problem for this case like what OP presented.

    the modification are only in DECHashAuthentication.pas
    function ValidAuthHash(HashClass: TDECHashClass): TDECHashAuthenticationClass;
    procedure SetDefaultAuthHashClass(HashClass: TDECHashClass);

    implementation

    uses
    DECUtil;
  • Forum: Programmieren allgemein

    AW: Hilfe bei Umstellung Unit DEC5.1 zu DEC6.0

      Delphi
      by Kas Ob., 28. Jan 2024
    I see this discrepancy in the implementation

    // in DECHash.pas
    THashBaseMD4 = class(TDECHashAuthentication)
    THash_SHA0 = class(THashBaseMD4)
    THash_SHA256 = class(THash_SHA0)

    // while in DECHashAuthentication.pas
    TDECHashAuthentication = class(TDECHash)
  • Forum: Programmieren allgemein

    AW: Hilfe bei Umstellung Unit DEC5.1 zu DEC6.0

      Delphi
      by Kas Ob., 28. Jan 2024
    Yes, it is tricky to add IDECHashAuthentication because the class methods, and to solve this either add the same naming methods in TDECHash, so you can redirect all these methods to the class ones in TDECHashAuthentication, or introduce new global function ValidPasswordHash just like ValidHash that return TDECHashAuthentication.

    Both approaches are not ideals, the best or the better is MAY BE...
  • Forum: Programmieren allgemein

    AW: Hilfe bei Umstellung Unit DEC5.1 zu DEC6.0

      Delphi
      by Kas Ob., 27. Jan 2024
    I am really sorry, but i don't even have an account on GitHub !
  • Forum: Programmieren allgemein

    AW: Hilfe bei Umstellung Unit DEC5.1 zu DEC6.0

      Delphi
      by Kas Ob., 27. Jan 2024
    ValidFormat is used as generic or general use function that can be used to one hit call, But ValidHash it seems was working in DEC v5 but with all the refactoring and separating code in different specialized units with DEC v6 it did lose the functionality code form TDECHashAuthentication.

    I think DEC v6 should add/have an interface (IDECHashAuthentication) to TDECHash like this :

    {$IFDEF...
  • Forum: Programmieren allgemein

    AW: Hilfe bei Umstellung Unit DEC5.1 zu DEC6.0

      Delphi
      by Kas Ob., 26. Jan 2024
    I looked at the library,
    ValidFormat and ValidHash supposed to be working as factory design, you feed them a class type and will get a class, this implementation to remove the need to hardcode a switch between algorithms.

    https://en.wikipedia.org/wiki/Factory_method_pattern
    but with simple function instead of a class.
  • Forum: Programmieren allgemein

    AW: Hilfe bei Umstellung Unit DEC5.1 zu DEC6.0

      Delphi
      by Kas Ob., 15. Jan 2024
    Hi,

    TurboMagic said will take a look, i hesitated yesterday to write the following:

    I can do it even i have never used DEC v5 and have very shallow knowledge with v6, but i believe i can figure it out, BUT i need few things to make sure not wasting my time and yours:

    1) the original code, the code was/is working with DEC v5.1, not a modified one.
    2) Three handled/hashed data
    A) a...


URL zu dieser Suchanfrage:

https://www.delphipraxis.net/dp_search.php?do=usersearch&search_username=Kas+Ob.&search_exact_username=1&search_sortby=dateline&search_resulttype=post&search_matchmode=0&searchthreadid=214436
Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:28 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz