async function encrypt(password, text) {
  password = password + "1111111111111111111111"
  let iv = crypto.randomBytes(IV_LENGTH);
  let cipher = crypto.createCipheriv('aes-256-cbc', Buffer.from(password), iv);
  let encrypted = cipher.update(text);

  encrypted = Buffer.concat([encrypted, cipher.final()]);

  return iv.toString('hex') + ':' + encrypted.toString('hex');
}
// For AES, this is always 16
For AES, this is always 16
For AES this is always 16
async function encrypt(password, text) {
  password = password + "1111111111111111111111"
  let iv = crypto.randomBytes(IV_LENGTH);
  let cipher = crypto.createCipheriv('aes-256-cbc', Buffer.from(password), iv);
  let encrypted = cipher.update(text);
  encrypted = Buffer.concat([encrypted, cipher.final()]);
  return iv.toString('hex') + ':' + encrypted.toString('hex');
}
async function encrypt ( password , text ) { password = password + "1111111111111111111111" let iv = crypto . randomBytes ( IV_LENGTH ) ; let cipher = crypto . createCipheriv ( 'aes-256-cbc' , Buffer . from ( password ) , iv ) ; let encrypted = cipher . update ( text ) ; encrypted = Buffer . concat ( [ encrypted , cipher . final ( ) ] ) ; return iv . toString ( 'hex' ) + ':' + encrypted . toString ( 'hex' ) ; }
For AES, this is always 16
For AES this is always 16