CryptoModule.legacyCryptoModule constructor

CryptoModule.legacyCryptoModule(
  1. CipherKey cipherKey, {
  2. dynamic defaultCryptoConfiguration = const CryptoConfiguration(),
})

Implementation

factory CryptoModule.legacyCryptoModule(CipherKey cipherKey,
    {defaultCryptoConfiguration = const CryptoConfiguration()}) {
  return CryptoModule(
      defaultCryptor: LegacyCryptor(cipherKey,
          cryptoConfiguration: defaultCryptoConfiguration),
      cryptors: <ICryptor>[AesCbcCryptor(cipherKey)]);
}