1.Introduction
Extension Name: File Cryptography
With the help of this extension, you can encrypt and decrypt files using AES Algorithm and 128bit Key (16 Characters). Key must be 16 characters, If not It will call onEncrypt/DecryptFail event.
2.Blocks
Events
Methods
3.Documentation
Events
- AfterEncrypt
Event raised after encrypting the file.
inputfile ~ text
outputfile ~ text
key ~ text
- AfterDecrypt
Event raised after decrypting the file.
inputfile ~ text
outputfile ~ text
key ~ text
- OnEncryptFail
Event raised after encrypting failed.
error ~ text
code ~ integer
- OnDecryptFail
Event raised after decrypting failed.
error ~ text
code ~ integer
Errors and Reasons
Formatted as Code - Error - Reason
- InvalidKeyException - If Key is not 16 char. length.
- NoSuchAlgorithmException - Will not throw this error.
- NoSuchPaddingException - Will not throw this error.
- IOException - File not exists, Wrong Decryption Password.
Methods/Functions
- EncryptFile
Encrypts input file and save it as encrypted file using the provided key.
Calls OnEncryptFail if failed or AfterEncrypt if succeed.
inputfile ~ text (path)
outputfile ~ text (path)
key ~ text (used)
- DecryptFile
Decrypts input file and save it as decrypted file using the provided key.
Calls OnDecryptFail if failed or AfterDecrypt if succeed.
inputfile ~ text (path)
outputfile ~ text (path)
key ~ text (used)
4.Downloads
Aix file
- Download
com.jaxparrow.filecrypto.filecryptography.aix (8.2 KB)
Aia file
- Download
FileEncryptionTest.aia (12.0 KB)
Test Apk file
- Download
FileEncryptionTest.apk (5.9 MB)
5.Open Source
This extension is opensource and anyone can contribute to this extension.
6. Credits
I created this extension with the help of Rush. Without Rush, I could’ve not created this. Thanks to @Shreyash for Rush. Extension Documentation layout inspired from @vknow360.