Description: Using this extension you can encrypt files in a way that they will behave like corrupted so that they can’t be opened outside of your app until decrypted again.
Latest Version: 1
Released: 10 Aug, 2023
Last Updated: 10 Aug, 2023
|FileEncrypted||Event raised after getting encrypt file result|
|FileDecrypted||Event raised after getting decrypt file result|
|GotError||Event raised when any error occurs|
|EncryptFile||Encrypts file so that it can’t be opened outside of app|
|DecryptFile||Decrypts file and makes it openable|
|BytesCount||Sets number of bytes to be encrypted|
Property Type : write-only
Accepts : number
It encrypts/corrupts file so that users can’t open it themselves. So your files will be safe and can’t be manipulated easily.
Note: It accepts file path only (no SAF content/document uri) and works only if app owns the file.
Decrypts the previously encrypted file and makes it usable.
Set Bytes Count
Altering even 1 byte is enough to encrypt most files but to be safe you should choose something like 100 and or above.
Default value is 50.
Licensed under creativecommons.org/licenses/by-sa/4.0
An attribution (name= vknow360) and link to this post is must
Hope it helps!