FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql/java/ql/src/experimental/quantum/Examples/WeakHash.ql at main · github/codeql · GitHub
github
codeql
Repository navigation
Code
Issues
1k
(1k)
Pull requests
474
(474)
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql
/
java
/
ql
/
src
/
experimental
/
quantum
/
Examples
/
WeakHash.ql
Copy path
More file actions
More file actions
Latest commit
History
History
History
16 lines (14 loc) · 428 Bytes
Breadcrumbs
codeql
/
java
/
ql
/
src
/
experimental
/
quantum
/
Examples
/
WeakHash.ql
Copy path
File metadata and controls
16 lines (14 loc) · 428 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
* @name Weak hashes
* @description Finds uses of cryptographic hashing algorithms that are unapproved or otherwise weak.
* @id java/quantum/examples/weak-hash
* @kind problem
* @problem.severity error
* @tags external/cwe/cwe-327
* quantum
* experimental
*/
import
WeakHash
from
Crypto
::
HashAlgorithmNode
alg
,
Crypto
::
HashType
htype
,
string
msg
where
isUnapprovedHash
(
alg
,
htype
,
msg
)
select
alg
,
msg
Back
|
FazBrowse Home
|
New Git URL