// Simple decryption utility
const decryptPassword = (encryptedPassword) => {
  try {
    return Buffer.from(encryptedPassword, 'base64').toString('utf-8');
  } catch (error) {
    throw new Error('Invalid password format');
  }
};

module.exports = { decryptPassword };