Skip to content

Develop branch merge to master (#6)#15

Closed
Vidyaaa24 wants to merge 1 commit intodevelopfrom
master
Closed

Develop branch merge to master (#6)#15
Vidyaaa24 wants to merge 1 commit intodevelopfrom
master

Conversation

@Vidyaaa24
Copy link
Copy Markdown
Contributor

Created readme.md file


* 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

Cryptographic algorithm [/ECB/PKCS5Padding](1) is weak and should not be used.
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

Cryptographic algorithm [/ECB/PKCS5Padding](1) is weak and should not be used.

public AESUtil() {
try {
cipher = Cipher.getInstance(CIPHER_ALGORITHM);

Check failure

Code scanning / CodeQL

Use of a broken or risky cryptographic algorithm

Cryptographic algorithm [AES/CBC/PKCS5Padding](1) is weak and should not be used.
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

Cryptographic algorithm [AES/CBC/PKCS5Padding](1) is weak and should not be used.

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

Cryptographic algorithm [PBKDF2WithHmacSHA1](1) is weak and should not be used.
@Vidyaaa24 Vidyaaa24 closed this Jun 22, 2023
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.

4 participants