Conversation
* Create README.md (#2) Created readme.md file * updated code-of-conduct, copying, contributing, readme (#3) * Update README.md * Create COPYING * Create CODE_OF_CONDUCT.md * Create CONTRIBUTING.md * Vulnerability fixes (#1) * Vulnerability fixes * removed unwanted loggers * super Admin User Authenticate Changes * Password Encryption Changes * modified .gitignore file (#4) * Update gitignore (#5) * modified .gitignore file * Create build-on-pull-request.yml * Create sast-and-package.yml * Delete Maven Build and CodeQL Analysis.yml * Delete logs directory --------- Co-authored-by: Mahima Elizabeth George <86731974+mahimaeg@users.noreply.github.com> Co-authored-by: Sweta Prakash <125380378+swetatech24@users.noreply.github.com> Co-authored-by: ravishanigarapu <133210792+ravishanigarapu@users.noreply.github.com> Co-authored-by: Vidyadevi Salunkhe <84471226+Vidyaaa24@users.noreply.github.com>
|
|
||
| public String encrypt(String value) throws Exception { | ||
| SecretKey secretKey = new SecretKeySpec(SECRET_KEY.getBytes(StandardCharsets.UTF_8), ALGORITHM); | ||
| Cipher cipher = Cipher.getInstance(ALGORITHM + "/ECB/PKCS5Padding"); |
Check failure
Code scanning / CodeQL
Use of a broken or risky cryptographic algorithm
| public String decrypt(String encryptedValue) { | ||
| try { | ||
| SecretKey secretKey = new SecretKeySpec(SECRET_KEY.getBytes(StandardCharsets.UTF_8), ALGORITHM); | ||
| Cipher cipher = Cipher.getInstance(ALGORITHM + "/ECB/PKCS5Padding"); |
Check failure
Code scanning / CodeQL
Use of a broken or risky cryptographic algorithm
|
|
||
| public AESUtil() { | ||
| try { | ||
| cipher = Cipher.getInstance(CIPHER_ALGORITHM); |
Check failure
Code scanning / CodeQL
Use of a broken or risky cryptographic algorithm
| this.keySize = keySize; | ||
| this.iterationCount = iterationCount; | ||
| try { | ||
| cipher = Cipher.getInstance(CIPHER_ALGORITHM); |
Check failure
Code scanning / CodeQL
Use of a broken or risky cryptographic algorithm
|
|
||
| private SecretKey generateKey(String salt, String passPhrase) { | ||
| try { | ||
| SecretKeyFactory secretKeyFactory = SecretKeyFactory.getInstance(SECRET_KEY_ALGORITHM); |
Check failure
Code scanning / CodeQL
Use of a broken or risky cryptographic algorithm
devikasuresh20
approved these changes
Jun 22, 2023
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.
Created readme.md file
updated code-of-conduct, copying, contributing, readme (updated code-of-conduct, copying, contributing, readme #3)
Update README.md
Create COPYING
Create CODE_OF_CONDUCT.md
Create CONTRIBUTING.md
Vulnerability fixes (Vulnerability fixes #1)
Vulnerability fixes
removed unwanted loggers
super Admin User Authenticate Changes
Password Encryption Changes
modified .gitignore file (modified .gitignore file #4)
Update gitignore (Update gitignore #5)
modified .gitignore file
Create build-on-pull-request.yml
Create sast-and-package.yml
Delete Maven Build and CodeQL Analysis.yml
Delete logs directory