Rhtyme / openssl-android-terminal

The sample that provides handling openssl commands in Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

openssl-android-terminal

This sample shows how to compile and use openssl library for Android. The main feature is that it supports Russian GOST engine, and you can add another engine by adding the source files to engine directory and modifying openss.cnf file pointing to that engine in engine_section.

This project is Android project, but in order to compile openssl library in android you should do followings:

  • The script that compiles openssl library written in Linux Bash shell, so you should have Linux environment(such as Ubuntu or Debian), (Windows script will be available later)
  • You should have Android studio, Android sdk and as well as Android ndk installed on your system
  • You should change NDK_ROOT, NDK_PATH, PATH in file: app/src/main/misc/build-native.sh appropriate to the path where your NDK is located
  • Open terminal and cd to_your_project/app/src/main then run a script following way: ./misc/build-native.sh
  • Then just open project in Android studio then build_gradle is autommatically invoked by Android studio

That's all, when app is launched you can send openssl commands

Important!!! Not all the openssl commands are tested to be run, if some commands are not handled just open a new issue, and please describe the details

Important!!! Openssl library that is compiled in this project does not work properly on some SAMSUNG devices such as Samsung j5-prime, Samsung GALAXY Note-4. I don't know the exact reason, but if you fix the problem, please send me the patches

About

The sample that provides handling openssl commands in Android


Languages

Language:C 67.9%Language:Perl 6 11.0%Language:Assembly 8.3%Language:Perl 4.4%Language:C++ 2.3%Language:Makefile 1.9%Language:Prolog 1.5%Language:Objective-C 0.8%Language:DIGITAL Command Language 0.7%Language:Shell 0.5%Language:M4 0.2%Language:Batchfile 0.1%Language:Java 0.0%Language:eC 0.0%Language:Emacs Lisp 0.0%Language:Roff 0.0%Language:XS 0.0%Language:Scheme 0.0%Language:CMake 0.0%Language:Python 0.0%Language:Module Management System 0.0%Language:HTML 0.0%