Skip to content

new demo file#309

Open
avnipatamz wants to merge 4 commits intoaws-samples:masterfrom
avnipatamz:dev
Open

new demo file#309
avnipatamz wants to merge 4 commits intoaws-samples:masterfrom
avnipatamz:dev

Conversation

@avnipatamz
Copy link
Copy Markdown

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.


// create a function that has weak Security
public String weakEncryption(String message) throws Exception {
Cipher cipher = Cipher.getInstance("RSA");
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommendation generated by Amazon CodeGuru Reviewer. Leave feedback on this recommendation by replying to the comment or by reacting to the comment using emoji.

It looks like your code uses a cipher object with an insecure transformation. To make your code more secure, use one of the following algorithms with a built-in integrity check: AES/GCM/NoPadding or ChaCha20-Poly1305.

Learn more

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