RSA should use a long key Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel,
n'hésitez pas à nous contacter .
TRY THIS RULE ID: java-security/rsa-short-key
Language: Java
Severity: Warning
Category: Security
Description When using RSA, use keys with at least 2048 bits.
Learn More Arguments min-length
: Minimum length for an RSA key. Default: 2048.Non-Compliant Code Examples public class MyClass {
public void test () {
KeyPairGenerator keyGen = KeyPairGenerator . getInstance ( "RSA" );
keyGen . initialize ( 512 );
}
}
Compliant Code Examples public class MyClass {
public void test () {
KeyPairGenerator keyGen = KeyPairGenerator . getInstance ( "RSA" );
keyGen . initialize ( 2048 );
}
}
Seamless integrations. Try Datadog Code Analysis