Skip to content

Added hashing function support #152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 23, 2022
Merged

Added hashing function support #152

merged 8 commits into from
Jun 23, 2022

Conversation

jmah8
Copy link
Contributor

@jmah8 jmah8 commented Jun 21, 2022

  • Added support MD5, SHA1, SHA256 and SHA512 for SQL Server 2019 and above
  • Throw errors for SHA224, SHA384 and when SQL Server is below 2019

@@ -305,6 +405,12 @@
NthValue.as_microsoft = sqlserver_nth_value
Round.as_microsoft = sqlserver_round
Window.as_microsoft = sqlserver_window
MD5.as_microsoft = sqlserver_md5
SHA1.as_microsoft = sqlserver_sha1

Check failure

Code scanning / devskim

Weak/Broken Hash Algorithm

Weak/Broken Hash Algorithm
'db_functions.text.test_md5.MD5Tests.test_basic',
'db_functions.text.test_md5.MD5Tests.test_transform',
'db_functions.text.test_sha1.SHA1Tests.test_basic',
'db_functions.text.test_sha1.SHA1Tests.test_transform',

Check failure

Code scanning / devskim

Weak/Broken Hash Algorithm

Weak/Broken Hash Algorithm
@@ -305,6 +405,12 @@
NthValue.as_microsoft = sqlserver_nth_value
Round.as_microsoft = sqlserver_round
Window.as_microsoft = sqlserver_window
MD5.as_microsoft = sqlserver_md5

Check failure

Code scanning / devskim

Weak/Broken Hash Algorithm

Weak/Broken Hash Algorithm
@@ -9,7 +9,7 @@
from django.db.models import BooleanField, CheckConstraint, Value
from django.db.models.expressions import Case, Exists, Expression, OrderBy, When, Window
from django.db.models.fields import BinaryField, Field
from django.db.models.functions import Cast, NthValue
from django.db.models.functions import Cast, NthValue, MD5, SHA1, SHA224, SHA256, SHA384, SHA512

Check failure

Code scanning / devskim

Weak/Broken Hash Algorithm

Weak/Broken Hash Algorithm
@@ -9,7 +9,7 @@
from django.db.models import BooleanField, CheckConstraint, Value
from django.db.models.expressions import Case, Exists, Expression, OrderBy, When, Window
from django.db.models.fields import BinaryField, Field
from django.db.models.functions import Cast, NthValue
from django.db.models.functions import Cast, NthValue, MD5, SHA1, SHA224, SHA256, SHA384, SHA512

Check failure

Code scanning / devskim

Weak/Broken Hash Algorithm

Weak/Broken Hash Algorithm
@absci absci merged commit d1c0665 into microsoft:dev Jun 23, 2022
@jmah8 jmah8 deleted the HashingFunctions branch July 19, 2022 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants