static String? encrypt(String data) { try { final encrypted = _encrypter.encrypt(data); return encrypted.base64; } catch (e) { print('Encryption failed: $e'); return null; } }