Skip to content

An encryption and decryption project. Between Android, PHP and Java. Codes for three different programming languages are included.

License

Notifications You must be signed in to change notification settings

alirezaashrafi/Codia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codia

Easy and Fast android - php - java Encryption Decryption library

  • Support UTF-8 Characters Arabic Chinese Farsi & .... Characters
  • Without adding additional characters
  • Extremely fast encrypt 100MB string per second
  • Optimized for JSON encryption
  • Min Sdk Version api 1

Do not forget the star:)⭐️


How to download

Gradle

Add it in your root build.gradle at the end of repositories:
    allprojects {
         repositories {
             ...
             maven { url 'https://jitpack.io' }
         }
    }
add this line to your module build.gradle dependecies block:
    compile 'com.github.alirezaashrafi:codia:2.0.0'

Maven

Add the JitPack repository to your build file
  <repositories>
    <repository>
      <id>jitpack.io</id>
      <url>https://jitpack.io</url>
    </repository>
  </repositories>
Add the dependency
  <dependency>
    <groupId>com.github.alirezaashrafi</groupId>
    <artifactId>codia</artifactId>
    <version>2.0.0</version>
  </dependency>

android & java example

    Codia codia = new Codia("Your Own Private Key");

    String text = "Easy and Fast android - php - java Encryption Decryption library";
    String encoded = codia.encode(text);
    String decoded = codia.decode(encoded);

php example

    require_once __DIR__.'/lib/Codia.php';
    $codia = new Codia("Your Own Private Key");

    $text = "Easy and Fast android - php - java Encryption Decryption library";
    $encodedText = $codia->encode($text);
    $decodedText = $codia->decode($encodedText);

kotlin example

    val text = "Easy and Fast android - php - java Encryption Decryption library"

    val codia = Codia("Your Own Private Key")
    val encodedText = codia.encode(text)
    val decodedText = codia.decode(encodedText)

sample Encryption and Decryption process diagram


Licence

Copyright 2018 Alireza Ashrafi

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


Author


If you liked this library, do not forget to star and follow me ⭐️❤️️💙

About

An encryption and decryption project. Between Android, PHP and Java. Codes for three different programming languages are included.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published