encryptPassword function

String encryptPassword(
  1. String plainText, {
  2. int mode = 1,
})

this handles password encryption

plainText Represents the password text

mode is an optional field that allows values from 1-9 and represents the number of times the algorithm.

the default of mode is 1 and no greater than 9

Implementation

String encryptPassword(String plainText, {int mode = 1}) {
   assert(mode < 10);
  return CipherControl.instance().generatePassword(plainText, mode);
}