-
Notifications
You must be signed in to change notification settings - Fork 45
Develop branch merge to master (#6) #15
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
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
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