newCipherWandFromSecretKey method

Future<CipherWand> newCipherWandFromSecretKey(
  1. SecretKey secretKey, {
  2. bool allowEncrypt = true,
  3. bool allowDecrypt = true,
})
inherited

Constructs a CipherWand that uses this implementation and the given SecretKey.

Implementation

Future<CipherWand> newCipherWandFromSecretKey(
  SecretKey secretKey, {
  bool allowEncrypt = true,
  bool allowDecrypt = true,
}) async {
  return _CipherWand(
    this,
    secretKey,
    allowEncrypt: allowEncrypt,
    allowDecrypt: allowDecrypt,
  );
}