pubnub / rust

PubNub Rust SDK.
Other
30 stars 8 forks source link

Data encryption / decryption provider #104

Closed parfeon closed 1 year ago

parfeon commented 1 year ago

feat(cryptor): data encryption / decryption module

Add module for data encryption and decryption into SDK.

Xavrax commented 1 year ago

One question. As I understand - currently we don't use that and it will be a part of the client in future?

parfeon commented 1 year ago

@Xavrax I added it as feature, and you can patch Cargo.toml if you want to exclude it from default feature.

Xavrax commented 1 year ago

@parfeon yes. But it is exported as a standalone struct. We don't use it in our client, do we?

parfeon commented 1 year ago

@Xavrax as we discussed earlier, we just created cryptor as provider. Next we will need to include it into the client constructor (using trait) and then use with published message encryption.

kleewho commented 1 year ago

I don't mind merging it in. Any improvements we can always add later :)

parfeon commented 1 year ago

@kleewho I'm making changes to it