addPassphrase method

void addPassphrase(
  1. String passphrase,
  2. bool hashed,
  3. String? licenseId,
  4. String? provider,
  5. String? userId,
)

Implementation

void addPassphrase(String passphrase, bool hashed, String? licenseId,
    String? provider, String? userId) {
  String hashedPassphrase =
      (hashed) ? passphrase : sha256.convert(passphrase.codeUnits).toString();
  repository.addPassphrase(hashedPassphrase, licenseId, provider, userId);
}