/EncryptionLibrary

This is library made for end to end ecryption.

Primary LanguageJava

EncryptionLibrary

Step 1. Add the JitPack repository to your build file :

  allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Step 2. Add the dependency in build.gradle of Module :

dependencies {
           implementation 'com.github.dhananjay0610:EncryptionLibrary:Tag'
   }

How to use ?
Create object of this class;

UserKeys userKeys= AssymetricEncryption.createUserKeys();

UserKeys class have two methods :

  1. getPublicKey()
  2. getPrivateKey()

thus, in order to use this method,just use it using object as follows :

1)byte[] publickey = userKeys.getPublicKey();

2)byte[] privatekey = userKeys.getPrivateKey();

Keep in mind that return type of both methods is: byte array (i.e byte[] ).