BCrypt Password Hashing in Dart

dependencies:
  dbcrypt: ^1.0.0
import 'package:dbcrypt/dbcrypt.dart';

void main() {
  var password = "nilpointer";
  var hashed = new DBCrypt().hashpw(password, new DBCrypt().gensalt());
  print("hashed: ${hashed}");
  
  var password2 = "abc";
  var result = new DBCrypt().checkpw(password2, hashed);
  if (result) {
    print("password and password 2 match");
  } else {
    print("password and password 2 do not match");
  }
}
hashed: $2b$10$mEps8b0vkkUhSKRmbOf0qO8ed.Wnguj3uJQPH3k7Jfcn.OuNufRZm
password and password 2 do not match