AES
This class represents implementation of the Advanced Encryption Standard (AES). Advanced Encryption Standard is a specification for the encryption of electronic data using symmetric-key algorithm, which means that the same key is used for both encrypting and decrypting.
Method fileEncrypt encrypts data with key; contains following parameters:
input |
text to be encrypted |
output |
binary data |
password |
encryption key |
Method fileDecrypt decrypts data with key; contains following parameters:
input |
binary data |
output |
decrypted text |
password |
decryption key |
Example of AES:
//app://input.txt contains: Moscrif is the best mobile cross-platform SDK. AES.fileEncrypt("app://input.txt", "app://output.txt", "password"); //app://output.txt contains crypted data in binary format
AES.fileDecrypt("app://output.txt", "app://decrepted.txt", "password"); //app://decrepted.txt contains: Moscrif is the best mobile cross-platform SDK.