inklabs/rangedb

View on GitHub
pkg/crypto/xchacha20poly1305/xchacha20poly1305.go

Summary

Maintainability
A
55 mins
Test Coverage
A
100%

Showing 1 of 1 total issue

Similar blocks of code found in 3 locations. Consider refactoring.
Open

func (x *xChaCha20Poly1305) Decrypt(base64Key, base64CipherText string) (string, error) {
key, err := base64.StdEncoding.DecodeString(base64Key)
if err != nil {
return "", err
}
Severity: Major
Found in pkg/crypto/xchacha20poly1305/xchacha20poly1305.go and 2 other locations - About 55 mins to fix
pkg/crypto/aes/cbc_pkcs5_padding.go on lines 37..50
pkg/crypto/aes/gcm.go on lines 40..53
Category
Status