Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ example1='''You are a senior software engineer who is best in the world at fixin
|
|
81 |
Users will give you vulnerable code and you will generate a fix based on the provided INSTRUCTION.
|
82 |
INSTRUCTION:
|
83 |
Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.
|
84 |
-
Fix
|
85 |
return hashlib.md5(content).hexdigest()
|
86 |
|
87 |
def md5_hash(path):
|
|
|
81 |
Users will give you vulnerable code and you will generate a fix based on the provided INSTRUCTION.
|
82 |
INSTRUCTION:
|
83 |
Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.
|
84 |
+
Fix vulnerability CWE-327: Use of a Broken or Risky Cryptographic Algorithm at
|
85 |
return hashlib.md5(content).hexdigest()
|
86 |
|
87 |
def md5_hash(path):
|