Skip to content

Releases: VirgilSecurity/react-native-virgil-crypto

Actualize package

22 Feb 14:29
b502fa2
Compare
Choose a tag to compare

Updated dependencies
Updated grandlew

v0.5.0

11 Feb 14:53
fcd269b
Compare
Choose a tag to compare

February 11, 2020

Changes

✅ Add post-quantum cryptography.
✅ Add encryption with padding.
✅ Add pre-configured projects for React Native 0.59.x and React Native 0.61.x.
✅ CocoaPods everywhere! React Native doesn't support Carthage - facebook/react-native#13835.
✅ 👆This leads to a better developer experience.

Try it now

npm install react-native-virgil-crypto
# or
yarn add react-native-virgil-crypto

v0.4.0

29 Oct 13:15
f412733
Compare
Choose a tag to compare

October 29, 2019

What's new

  • Group encryption primitives (meant as low-level building blocks for implementing group chats in E3kit).
  • Autolinking on iOS with React Native > 0.61.0
  • Unified error names between React Native and JS

BREAKING CHANGES

  • If you're on React Native v0.60.x, you'll need to explicitly disable autolinking of react-native-virgil-crypto. To do that, you'll need to update your react-native.config.js's dependencies entry to look like this (create this file in the root of your project if you don't have it):

    // react-native.config.js
    module.exports = {
      dependencies: {
        'react-native-virgil-crypto': {
          platforms: {
            ios: null // disable iOS platform, other platforms will still autolink if provided
          }
        }
      }
    };
  • If you relied on errors thrown by this library to have the name property equal to "RNVirgilCryptoError", you'll need to update your code because this is no longer the case. You can do instanceof check instead. So, if you had code like this:

    import { virgilCrypto } from 'react-native-virgil-crypto';
    
    try {
        const decryptedMessage = virgilCrypto.decrypt(encryptedMessage);
    } catch (err) {
        if (err.name === 'RNVirgilCryptoError') {
            // decryption failed
        }
    }

    It can be re-written like this:

    -import { virgilCrypto } from 'react-native-virgil-crypto';
    +import { virgilCrypto, RNVirgilCryptoError } from 'react-native-virgil-crypto';
    
     try {
            const decryptedMessage = virgilCrypto.decrypt(encryptedMessage);
     } catch (err) {
    -       if (err.name === 'RNVirgilCryptoError') {
    +       if (err instanceof RNVirgilCryptoError) {
                    // decryption failed
            }
     }

v0.3.2

11 Oct 15:29
6586784
Compare
Choose a tag to compare

October 11, 2019

  • End-to-End tests
  • Update @virgilsecurity/crypto-types to 0.2.0 (e3kit compatibility)

v0.3.1

04 Oct 13:56
Compare
Choose a tag to compare

October 4, 2019

Fixed

  • calculateHash method returned base64-encoded string instead of Buffer when called without specifying an algorithm
  • HEADER_SEARCH_PATHS on iOS contained recursive entries which caused problems when the gRPC-C++ library was also installed

v0.3.0

04 Oct 13:55
Compare
Choose a tag to compare

September 6, 2019

Added

  • Crypto primitives for implementing Group Encryption in E3kit

v0.2.0

26 Aug 11:19
9facdd2
Compare
Choose a tag to compare

August 26, 2019

Added

Ability to encrypt, decrypt, sign and verify signature of files.

v0.1.0

26 Aug 11:17
Compare
Choose a tag to compare

August 8, 2019

Initial Release

Implemented virgil-crypto-javascript-v3-compatible API for React Native