Skip to content
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

[feature] support aes-128 & aes-256 encryption #668

Merged
merged 22 commits into from
Nov 8, 2023

Conversation

robynron
Copy link
Contributor

No description provided.

@CLAassistant
Copy link

CLAassistant commented Oct 19, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@binbin0325 binbin0325 left a comment

Choose a reason for hiding this comment

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

go.mod conflicts

@@ -19,12 +19,15 @@ package config_client
import (
"context"
"fmt"
"github.com/alibabacloud-go/tea/tea"
Copy link
Member

Choose a reason for hiding this comment

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

Import format

@@ -0,0 +1,56 @@
package encoding
Copy link
Member

Choose a reason for hiding this comment

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

New File add open source license

return ""
}
var startPos, endPos int
resRunes := make([]rune, 0)
Copy link
Member

Choose a reason for hiding this comment

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

slice advised to set the initial capacity to 8


func InitDefaultKmsV1ClientWithAccessKey(regionId, ak, sk string) (*KmsClient, error) {
var rErr error
if GetDefaultKmsClient() == nil {
Copy link
Member

Choose a reason for hiding this comment

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

if there is too much nesting, reverse is recommended


func (kmsClient *KmsClient) Decrypt(cipherContent string) (string, error) {
request := kms.CreateDecryptRequest()
request.Method = "POST"
Copy link
Member

Choose a reason for hiding this comment

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

"POST" replace http.MethodPost

@binbin0325 binbin0325 merged commit 9b9ff77 into nacos-group:master Nov 8, 2023
2 checks passed
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