Manual For Mobile Security


Data, Location and cryptography Privacy



Download 354.78 Kb.
Page5/6
Date21.06.2017
Size354.78 Kb.
#21392
1   2   3   4   5   6

Data, Location and cryptography Privacy


Encryption/Decryption on SMS




  • This lab creates a secure SMS Android Application. The secure SMS application that is designed utilizes encryption and decryption, which means that if there is some malware threat in the middle and the threat tries to intercept or view our short message body it will get nothing but some random bytes (the so-called cypher text).



Software requirement for this lab


  • Eclipse IDE.

  • Android SDK.


Tutorial


  • Create a Project Name : EncDecSMS.

  • Target Name : Andorid 2.2.2.

  • Package Name : android.encdecsms.



  • Copy the following XML code to layout -> main.xml :




    android:layout_width="fill_parent"

    android:layout_height="fill_parent"

    android:orientation="vertical" >


            android:id="@+id/linearLayout1"

        android:layout_width="match_parent"

        android:layout_height="wrap_content"

        android:orientation="vertical" >
       

            android:id="@+id/textView1"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:text="Recipient:"

            android:textAppearance="?android:attr/textAppearanceMedium" />

   
   

        android:id="@+id/recNum"

        android:layout_width="match_parent"

        android:layout_height="wrap_content"

        android:inputType="phone" >
       

   


            android:id="@+id/textView2"

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:text="16-Character Secret Key:"

        android:textAppearance="?android:attr/textAppearanceMedium" />


            android:id="@+id/secretKey"

        android:layout_width="match_parent"

        android:layout_height="wrap_content"

        android:inputType="textPassword" />
   

        android:id="@+id/textView3"

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:text="Message:"

        android:textAppearance="?android:attr/textAppearanceMedium" />

   

        android:id="@+id/msgContent"

        android:layout_width="match_parent"

        android:layout_height="208dp"

        android:layout_weight="0.37"

        android:inputType="textMultiLine" />


            android:id="@+id/linearLayout2"

        android:layout_width="match_parent"

        android:layout_height="wrap_content" >


       


Download 354.78 Kb.

Share with your friends:
1   2   3   4   5   6




The database is protected by copyright ©ininet.org 2024
send message

    Main page