Introducing EmailMask Extension for App Inventor

Hello App Inventors!

We’re excited to introduce the EmailMask extension for Google App Inventor. This extension allows you to easily mask parts of an email address, enhancing privacy and security in your Android apps.

How to Use:

  1. Download and Import:
  • Download the EmailMask extension to your computer.
  • Open your App Inventor project.
  • Go to the “Extensions” palette and click on “Import Extension.”
  • Choose the downloaded EmailMask extension file.
  1. Add EmailMask to Your Project:
  • In the “Designer” view, go to the “Palette” on the left.
  • Scroll down to the “User Interface” section and find “EmailMask.” Drag and drop it onto your screen. This adds the EmailMask component to your project.
  1. Using the Mask Function:
  • Once the EmailMask component is added, you’ll find it in the “Palette” under “Non-Visible Components.”
  • In the “Blocks” editor, you can now use the MaskEmailAddress function. This function takes an email address as input and returns the masked email address.
  1. Example:
  • Let’s say you have an email address “[email protected].”
  • Use the following blocks in your App Inventor project:

when Button1.Click
   set Label1.Text to EmailMask.MaskEmailAddress("[email protected]")

  1. Run Your App:
  • Connect your device or use an emulator.
  • Click “Connect” and then “Build” to generate the APK.
  • Install and run the APK on your Android device.
  1. Check the Result:
  • Click the designated button in your app (e.g., Button1).
  • The Label1 will now display the masked email address.



  • The MaskEmailAddress function masks the local and domain parts of the email address, excluding the first and last two characters.

Feel free to experiment with the extension and customize the masking logic to suit your app’s requirements.

Important Links:

Let’s make our apps more secure with EmailMask!

If you have any questions or need assistance, feel free to reach out to the community.

Happy inventing! Raju


Please upload blocks images and uses example and demo if possible.

1 Like

I modified your post to reveal the screenshots however as it looks like you uploaded the wrong screenshots… please correct


thread unlisted meanwhile