Encrypts the given data using device-specific encryption. Returns null for empty string
The data to encrypt.
The encryption type to use (default: Device).
The encrypted data as a base64-encoded string, or null if encryption fails.
Encrypts the given data using device-specific encryption. Returns null for empty string