setPassword method

void setPassword(
  1. String password
)

Sets encryption/decryption password.

Implementation

void setPassword(String password) {
  AesCryptArgumentError.checkNullOrEmpty(password, 'Empty password.');
  _password = password;
  _passBytes = password.toUtf16Bytes(Endian.little);
}