Deprecated Key Generator High

The rsa.GenerateMultiPrimeKey function is deprecated and generates insecure RSA keys vulnerable to cryptographic attacks. It should be replaced with rsa.GenerateKey which creates keys of at least 2048 bits for secure encryption. Weak RSA keys produced by GenerateMultiPrimeKey can be factored and broken to access encrypted data. Using modern key generation functions like GenerateKey prevents creation of keys susceptible to attacks like factoring, protecting sensitive data.

Detector ID
go/deprecated-key-generator@v1.0
Category
Common Weakness Enumeration (CWE) external icon