AES256PasswordBasedEncryption-Decryption


Source link: https://github.com/rishelarora/AES256PasswordBasedEncryption-Decryption

AES256PasswordBasedEncryption-Decryption A library that lets you use the AES 256 password based encryption/decryption for your android application in the easiest manner.

Example Android application on the play store: https://play.google.com/store/apps/details?id=aes.secureencryptdecrypt

To get this project into your build:

  1. Add the specific repository to your build file:
repositories {

  maven {

url "https://jitpack.io"
  
}
 
}
 
  1. Add the dependency in your build file
dependencies {

  compile 'com.github.rishelarora:AES256PasswordBasedEncryption-Decryption:717dccc0ec' 
}
 

USAGE:

  1. Initialise a SecureMyText object with following syntax
SecureMyText secure=new SecureMyText(context,String password for encryption);
 
  1. Use the created object to perform encryption.

This is just to see the encrypted text. DONT send this to server. The final text to be sent needs to contain salt and IV for that instance of communication to be successful.

String encrypted_text = secure.encrypt(string to be encrypted);
 
  1. For getting final encrypted text containing salt and IV to be transferred,

Send the following string to Server.

String encrypted_text_to_be_transferred = secure.EncryptToFinalTransferText(string to be encrypted);
 

A potential hacker now needs to obtain the salt, IV, your inital text password and number of iterations to decrypt this text. Even if he/she succeeds for the next attempt, the salt and IV are again randomised and the other 2 parameters can be changed on both server and client sides so it doesn't compromise the whole system.

4.For decrypting initialization remains the same

String plain_text = secure.decrypt(string to be decrypted);
 

For more details look into the SecureText class. The sample folder has an android application that shows a sample implementation of the encryption/decryption. Explanation of the whole encryption and decryption process taking example of app to server communication with notes and flow diagrams is attached.

Happy securing!

Resources

This is a lightweight Logger to file for Android. Logging to file is a common task and there is no good solution to do it effectively. This library does it for you.

Swipe-able view, which allows users to perform actions by swiping it to the left or right side.

Open Weather API Wrapper is an Android wrapper for the APIs of https://openweathermap.org. This library handles all the network operations and parameter validations on behalf of the developer.

A fast annotation processor to make your objects Parcelable without writing any of the boilerplate.

A small customizable library useful to handle an gallery image pick action built-in your app.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes