#1 2024-10-25 18:38:17

Márcio Baroni
Member
From: Brasil
Registered: 2015-10-07
Posts: 34

AESSHA256 in mORMot 2

Hello everyone
Could someone help me with what would be the equivalent of "AESSHA256" (mormot1) for mORMot 2?

Thanks

Offline

#2 2024-10-26 03:24:38

zen010101
Member
Registered: 2024-06-15
Posts: 66

Re: AESSHA256 in mORMot 2

Search "{ ****************** Deprecated Weak AES/SHA Process } " in mormot.crypt.core.pas and you can see this:

/// SHA-256 hash calculation with padding if shorter than 255 bytes
// - WARNING: this algorithm is DEPRECATED, and supplied only for backward
// compatibility of existing code (CryptDataForCurrentUser or TProtocolAes)
// - use Pbkdf2HmacSha256() or similar functions for safer password derivation
procedure Sha256Weak(const s: RawByteString; out Digest: TSha256Digest);

 

Offline

Board footer

Powered by FluxBB