Closed manarhidayat closed 1 year ago
I have React Native app using Pubnup, and use it for encrypt my message
the config like this:
this.pubnub = new PubNub({ subscribeKey: 'xxx', publishKey: 'xxx', uuid: 'default', useRandomIVs: false });
the function for encrypt:
this.pubnub.encrypt(message, 'cipherKey');
But when i try use Pubnup in Flutter app, i got different result
the config:
final cipherKey = CipherKey.fromUtf8("cipherKey"); final myKeyset = Keyset( cipherKey: cipherKey, subscribeKey: 'xxx', publishKey: 'xxx', userId: UserId('default')); final CryptoModule cryptoModule = CryptoModule( defaultConfiguration: CryptoConfiguration(useRandomInitializationVector: false)); final pubnub = PubNub(defaultKeyset: myKeyset, crypto: cryptoModule);
pubnub.crypto.encrypt(cipherKey, message)
flutter pubnub version : 4.2.1 react native pubnub version : 5.0.0
I have React Native app using Pubnup, and use it for encrypt my message
the config like this:
the function for encrypt:
But when i try use Pubnup in Flutter app, i got different result
the config:
the function for encrypt:
flutter pubnub version : 4.2.1 react native pubnub version : 5.0.0