See the App Inventor Extensions document about how to use an App Inventor Extension.
For questions about this extension, bug reports and feature requests, please start a new thread in the App Inventor Extensions forum. Thank you.
Mar 25th, 2016: Initial Version 1 for App Inventor version ai2extensions7 and Companion version 2.36cdk1
Aug 11th, 2016: Version 1a: avoid DX execution failed error: build each extension separately
There is a fundamental difference between Hashing and Encryption algorithms, see this stackoverflow answer: Hashing is one way. You can not get your data/string from a hash code. Encryption is 2 way - you can decrypt again the encrypted string if you have the key with you. In case you are interested in Hashing, see my Tools Extension.
Extension to encrypt/decrypt strings.
Required permissions: android.permission.READ_EXTERNAL_STORAGE, android.permission.WRITE_EXTERNAL_STORAGE
This extension uses the AESCrypt-Android library. Thank you Scotty!
"Simple API to perform AES encryption on Android with no dependancies.
AESCrypt-Android is the Android counterpart to the AESCrypt Ruby library created by Gurpartap Singh.
AESCrypt is a simple to use, opinionated AES encryption / decryption that just works.
AESCrypt uses the AES-256-CBC cipher and encodes the encrypted data with Base64."
According to the issues list of the AESCrypt-Android library the encryption result is different on Android compared to iOS or php!
Q1: If I use the extension in a Play Store app, can someone identify and extract the password/key from the .apk by decompiling?
A: Use the Obfuscated text block from the text drawer to store the key and to have some additional security, you can also follow this Security Recommendation (valid for In App Billing, but generally a good idea): It is highly recommended that you do not hard-code the exact public license key string value as provided by Google Play. Instead, you can construct the whole public license key string at runtime from substrings, or retrieve it from an encrypted store, before passing it to the constructor. This approach makes it more difficult for malicious third-parties to modify the public license key string in your APK file.
I can help you: for one hour I charge 25 USD.
Please contact me at info [at] puravidaapps [dot] com for details!
For questions about App Inventor, please use the App Inventor forum. Thank you.
You can buy this extension (aix file).
With your payment you accept the terms and conditions below.
Please transfer 10 USD via Paypal.
After having received your payment I will be happy to send the extension (aix file) to you.
Thank you! Taifun
Please check your spam folder in case you did not receive the extension!
I usually will send the extension not later than 24 hours after having received your payment.