-
Notifications
You must be signed in to change notification settings - Fork 755
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
Add RSA and AES encryption/decryption capabilities to crypto stdlib #13422
Merged
Conversation
This file contains 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
Codecov Report
@@ Coverage Diff @@
## master #13422 +/- ##
============================================
+ Coverage 63.98% 64.34% +0.36%
+ Complexity 659 426 -233
============================================
Files 2147 2152 +5
Lines 94210 94515 +305
Branches 12406 12471 +65
============================================
+ Hits 60281 60818 +537
+ Misses 29035 28794 -241
- Partials 4894 4903 +9
Continue to review full report at Codecov.
|
Shan1024
reviewed
Feb 10, 2019
stdlib/crypto/src/main/java/org/ballerinalang/stdlib/crypto/CryptoUtils.java
Outdated
Show resolved
Hide resolved
NatashaWso2
reviewed
Feb 10, 2019
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
NatashaWso2
reviewed
Feb 12, 2019
NatashaWso2
reviewed
Feb 12, 2019
stdlib/crypto/src/test/resources/test-src/crypto/crypto-test.bal
Outdated
Show resolved
Hide resolved
NatashaWso2
reviewed
Feb 12, 2019
stdlib/crypto/src/test/resources/test-src/crypto/crypto-test.bal
Outdated
Show resolved
Hide resolved
NatashaWso2
reviewed
Feb 12, 2019
stdlib/crypto/src/test/resources/test-src/crypto/crypto-test.bal
Outdated
Show resolved
Hide resolved
NatashaWso2
reviewed
Feb 12, 2019
stdlib/crypto/src/test/resources/test-src/crypto/crypto-test.bal
Outdated
Show resolved
Hide resolved
NatashaWso2
reviewed
Feb 12, 2019
stdlib/crypto/src/test/resources/test-src/crypto/crypto-test.bal
Outdated
Show resolved
Hide resolved
NatashaWso2
reviewed
Feb 12, 2019
stdlib/crypto/src/test/resources/test-src/crypto/crypto-test.bal
Outdated
Show resolved
Hide resolved
NatashaWso2
reviewed
Feb 12, 2019
stdlib/crypto/src/test/resources/test-src/crypto/crypto-test.bal
Outdated
Show resolved
Hide resolved
NatashaWso2
reviewed
Feb 12, 2019
stdlib/crypto/src/test/resources/test-src/crypto/crypto-test.bal
Outdated
Show resolved
Hide resolved
NatashaWso2
reviewed
Feb 12, 2019
stdlib/crypto/src/test/resources/test-src/crypto/crypto-test.bal
Outdated
Show resolved
Hide resolved
NatashaWso2
reviewed
Feb 12, 2019
stdlib/crypto/src/test/resources/test-src/crypto/crypto-test.bal
Outdated
Show resolved
Hide resolved
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
Co-Authored-By: ayomawdb <[email protected]>
ldclakmal
approved these changes
Feb 12, 2019
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.
Purpose
Ballerina
crypto
stdlib does not have functions to support encryption. This PR addsAES
andRSA
encryption capabilities to stdlib with common cipher modes and padding schemes.Resolves: #9054
Examples
RSA Encryption
The sample given below shows how to use encryption function
encryptRsaEcb
and decryption functiondecryptRsaEcb
to perform RSA encryption and decryption.AES Encryption
The sample given below shows how to use encryption function
encryptAesCbc
and decryption functiondecryptAesCbc
to perform AES encryption and decryption.