twik_password function

dynamic twik_password (
  1. String tag,
  2. String master_password,
  3. String secret_key,
  4. int length,
  5. PasswordType password_type
)

Implementation

twik_password(String tag, String master_password, String secret_key,
int length, PasswordType password_type) {
	/// Password generator with legacy security directives compatible with Twik android app
	if (master_password == '') {
		return '';
	}
	if (secret_key != null) {
		tag = twik_hasher(secret_key, tag, 24, PasswordType.special);
	}

	return twik_hasher(tag, master_password, length, password_type);
}