hashPw static method

Future<String> hashPw({
  1. required String password,
  2. required String salt,
})

Create passworde hash for given password and salt. Password must be a plain UTF-8 compatible String. Salt must be a string in Modular Crypt Format with $ separators for example r'$2b$06$C6UzMDM.H6dfI/f/IKxGhu'

Implementation

static Future<String> hashPw(
        {required String password, required String salt}) async =>
    await (_channel
        .invokeMethod('hashPw', {'password': password, 'salt': salt}));