toString method

  1. @override
String toString()
override

Crypt format string.

For example, returns a string like:

$5$saltstring$5B8vYYiY.CVt1RlTTf8KbXBH3hsxY/GNooZaBBGWEc5

Note: some systems might expect the crypt format string to be represented slightly differently. For example, when used as the LDAP userPassword attribute, it needs to be prepended with "{crypt}".

Implementation

@override
String toString() {
  final r = (_rounds != null) ? 'rounds=$_rounds\$' : '';
  return '\$$_type\$$r$_salt\$$_hash';
}