"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 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,125 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,042 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,831 questions
Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,776 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,885 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vadims Podāns 9,116 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