"CryptGenKey" has been deprecated as per the official documentation. Has Microsoft provided a specific timeline for the removal of this API?"

msdn twca 20 Reputation points
2023-12-05T09:20:03.49+00:00

Based on this link:

https://learn.microsoft.com/zh-tw/windows/win32/api/wincrypt/nf-wincrypt-cryptgenkey

,it is explained that the previously used CryptGenKey has been deprecated, but there is no specific timeline provided for when this API will be removed.

Because transitioning the product entirely to CNG API will take some time, it's unclear how much time is available for preparation. If, unfortunately, the API is removed, apart from rewriting, are there any other ways to retain the old functionality?擷取

Windows for business | Windows Client for IT Pros | Devices and deployment | Configure application groups
Windows for business | Windows Server | Devices and deployment | Configure application groups
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

Accepted answer
  1. Vadims Podāns 9,186 Reputation points MVP
    2023-12-05T13:51:35.3333333+00:00

    I wouldn't expect that this API will be removed within next 5 years.

    If, unfortunately, the API is removed, apart from rewriting, are there any other ways to retain the old functionality?

    there are literally no reasons to stick with old cryptography APIs when it is possible to switch to CNG. CNG provides same functionality and adds even more functionality. In the past, backward compatibility with older clients was a concern, but in 2023, it is no longer an excuse. CNG is supported down to Windows Vista, which is no longer supported.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.