Grpc: How to add custom encryption to gRPC?

Created on 6 Mar 2017  路  3Comments  路  Source: grpc/grpc

I have a nodejs server and two android and ios clients. I want to use my own encryption method to encrypt data at clients and decrypt it at the server? I mean this picture

kinquestion transienfixit

All 3 comments

In this post said that I have to implement an interface in the gRPC core and it requires a good knowledge of gRPC. I think it would be good if gRPC could add a higher layer for custom encryption. In some applications it is needed to do some custom encryption.

Depending on the gRPC language in use, it might be possible to accomplish that by writing and registering a custom codec that handles the encryption. Considering gRPC is able to leverage TLS which in most cases is what users want and the versatility of the codec and compression APIs, it is not a high priority for us to add a dedicated custom encryption API with increased complexity.

For instance, the Java Codec API is documented here: http://www.grpc.io/grpc-java/javadoc/io/grpc/Codec.html, Go: https://godoc.org/google.golang.org/grpc#Codec, C#: https://github.com/grpc/grpc/blob/master/src/csharp/Grpc.Core/Marshaller.cs

Hello. I was wandering if there is a similar interface for Python. I've looked into StreamStreamClientInterceptor, but does not look exactly what I need. I am trying to make a custom serializer.

Was this page helpful?
0 / 5 - 0 ratings