π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Remove comparision
Neeraj Gupta4fa3475f1803
diff --git a/server/pkg/utils/crypto/crypto.go b/server/pkg/utils/crypto/crypto.goindex bbe575f373..eb1b40e1f4 100644--- a/server/pkg/utils/crypto/crypto.go+++ b/server/pkg/utils/crypto/crypto.go@@ -55,16 +55,7 @@ func GetHash(data string, hashKey []byte) (string, error) {if err != 0 {return "", stacktrace.NewError("email hash failed")}- result := base64.StdEncoding.EncodeToString(dataHashBytes)- nativeResult, err2 := GetHashNative(data, hashKey)- if err2 != nil {- return "", stacktrace.Propagate(err2, "failed to get native hash")- }- if result != nativeResult {- return "", stacktrace.NewError("hash mismatch between libsodium and native implementations")- }- return result, nil-+ return base64.StdEncoding.EncodeToString(dataHashBytes), nil}func GetEncryptedToken(token string, publicKey string) (string, error) {