feat: add payment utilities#32
Open
samfert wants to merge 3 commits into
Open
Conversation
🤖 Devin TriggeredDevin has been assigned to fix the quality gate failures. 📊 Quality Gate Analysis
🔗 LinksNote: Devin will push a fix to this branch. The workflow will automatically re-run to validate. |
- Remove hardcoded password, use environment variable PAYMENT_DB_PASSWORD - Use try-with-resources for Connection, PreparedStatement, and ResultSet - Replace generic Exception with specific SQLException and NoSuchAlgorithmException - Use static SecureRandom instead of creating new Random instance each call - Fix SQL injection vulnerability by using PreparedStatement with parameterized query - Change return type from ResultSet to List<Map<String, Object>> to properly manage resources Co-Authored-By: Sam Fertig <sam.fertig@codeium.com>
- Replace MD5 (weak hash algorithm) with SHA-256 (cryptographically secure) - Use UTF-8 charset for consistent byte encoding - Convert hash bytes to hex string for proper representation Co-Authored-By: Sam Fertig <sam.fertig@codeium.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Adds payment utility functions to the User-Service.
Changes