mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
15 lines
585 B
Plaintext
15 lines
585 B
Plaintext
import codeql.ruby.AST
|
|
import codeql.concepts.CryptoAlgorithms
|
|
|
|
query predicate weakHashingAlgorithms(HashingAlgorithm ha) { ha.isWeak() }
|
|
|
|
query predicate strongHashingAlgorithms(HashingAlgorithm ha) { not ha.isWeak() }
|
|
|
|
query predicate weakEncryptionAlgorithms(EncryptionAlgorithm ea) { ea.isWeak() }
|
|
|
|
query predicate strongEncryptionAlgorithms(EncryptionAlgorithm ea) { not ea.isWeak() }
|
|
|
|
query predicate weakPasswordHashingAlgorithms(PasswordHashingAlgorithm pha) { pha.isWeak() }
|
|
|
|
query predicate strongPasswordHashingAlgorithms(PasswordHashingAlgorithm pha) { not pha.isWeak() }
|