[BETA/OS] File Cryptography - File Encryption and Decryption

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

image

Methods

image

3.Documentation

Events

  • AfterEncrypt
    Event raised after encrypting the file.
    component_event (2)
    inputfile ~ text
    outputfile ~ text
    key ~ text
  • AfterDecrypt
    Event raised after decrypting the file.
    component_event (1)
    inputfile ~ text
    outputfile ~ text
    key ~ text
  • OnEncryptFail
    Event raised after encrypting failed.
    component_event (4)
    error ~ text
    code ~ integer
  • OnDecryptFail
    Event raised after decrypting failed.
    component_event (3)
    error ~ text
    code ~ integer
Errors and Reasons

Formatted as Code - Error - Reason

  1. InvalidKeyException - If Key is not 16 char. length.
  2. NoSuchAlgorithmException - Will not throw this error.
  3. NoSuchPaddingException - Will not throw this error.
  4. 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.
    component_method
    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.
    component_method (1)
    inputfile ~ text (path)
    outputfile ~ text (path)
    key ~ text (used)

4.Downloads

Aix file

Aia file

Test Apk file

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.

10 Likes

Great :100:

1 Like

Thanks for reply. This is still in beta and It has some bugs/errors. You can contribute it by forking and making changes in Github.

1 Like

16 characters is 128Bit

1 Like

no java needed for the rush?

No… It reduces the boiler plate code and easy to configure and build extension.
You can take a look at the repo for the project structure and configuration.