I am trying to migrate some projects from .net framework 4.5 to .net core.
The problem arrises when trying to migrate an old crypting/decrypting method.
The method is a TripleDES with a key that is a MD5 hash.
The MD5 hash always returns 16 bytes.
This works well in .net framework 4.5, but in .net core in System.Security.Cryptography.Algorithms TripleDES only accepts a KeySize of 24 bytes. In 4.5 it accepts 16 bytes or 24 bytes.
Are there any workarounds that i could try?
Later edit : The TripleDes class when initialized calls new TripleDesImplementation which is this . And here it is stated that the CNG does not support 128 bit keys.