I am trying to port some projects from .net framework 4.5to .net core. The problem occurs when trying to transfer the old method crypting/decrypting. This method is TripleDESwith a key, which is an MD5 hash. An MD5 hash always returns 16 bytes. This works well in .net framework 4.5, but in .net corein System.Security.Cryptography.Algorithms TripleDESonly takes a KeySize of 24 bytes. In 4.5, it takes 16 bytes or 24 bytes. Are there any workarounds I could try?
Next, edit: The TripleDes class, upon initialization, calls the new TripleDesImplementation function, which this . And here it says that CNG does not support 128-bit keys.
source
share