Storing and encrypting data with the .NET MAUI Document Scanner SDK
Creating storage
- MAUI
- .NET Android
- .NET iOS
loading...
loading...
loading...
loading...
loading...
Encryption
The Scanbot SDK provides the ability to store the generated image files (JPG, PNG) and PDF files encrypted. This feature provides an additional level of security to the default secure storage locations of the native SDKs.
By default, file encryption is disabled. To enable encryption, pass the following configuration parameters during SDK initialization:
- MAUI
- .NET Android
- .NET iOS
loading...
var initializer = new IO.Scanbot.Sdk.ScanbotSDKInitializer();
var processor = new AESEncryptedFileIOProcessor(
"SomeSecretPa$$w0rdForFileEncryption",
AESEncryptedFileIOProcessor.AESEncrypterMode.Aes256
);
initializer.UseFileEncryption(true, processor);
nativeConfiguration.FileEncryptionMode = SBSDKAESEncrypterMode.SBSDKAESEncrypterModeAES256;
nativeConfiguration.FileEncryptionPassword = "S0m3W3irDL0ngPa$$w0rdino!!!!";
By activating storage encryption, the native Scanbot SDKs will use the built-in AES 128 or AES 256 encryption.
All generated image files (JPG, PNG), including the preview image files and the exported PDF files, will be encrypted in memory and stored as encrypted data files on the flash storage of the device.
The Scanbot SDK derives the AES key from the given password, an internal salt value, and the internal number of iterations using the PBKDF2 function.
When applying image operations such as cropping, rotation, or image filters, the Scanbot SDK will decrypt the image file in memory, apply the changes, encrypt it, and store it again.
Want to scan longer than one minute?
Generate a free trial license to test the Scanbot SDK thoroughly.
Get free trial licenseScanbot SDK is part of the Apryse SDK product family
A mobile scan is just the start. With Apryse SDKs, you can expand mobile workflows into full cross‑platform document processing. Whether you need to edit PDFs, add secure digital signatures, or use a fast, customizable document viewer and editor, Apryse gives you the tools to build powerful features quickly.
Learn more
