All Projects → haodynasty → Android Rsa

haodynasty / Android Rsa

Licence: apache-2.0
big file and string RSA encryption by android

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Android Rsa

Hybrid Crypto Js
RSA+AES hybrid encryption implementation for JavaScript. Works with Node.js, React Native and modern browsers.
Stars: ✭ 87 (+31.82%)
Mutual labels:  rsa, decryption
Encryptor4j
Strong encryption for Java simplified
Stars: ✭ 92 (+39.39%)
Mutual labels:  rsa, decryption
Jsrsasign
The 'jsrsasign' (RSA-Sign JavaScript Library) is an opensource free cryptography library supporting RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL, OCSP, CMS SignedData, TimeStamp, CAdES JSON Web Signature/Token in pure JavaScript.
Stars: ✭ 2,760 (+4081.82%)
Mutual labels:  rsa, decryption
Xjar
Spring Boot JAR 安全加密运行工具,支持的原生JAR。
Stars: ✭ 692 (+948.48%)
Mutual labels:  decryption
Swiftyrsa
RSA public/private key encryption in Swift
Stars: ✭ 894 (+1254.55%)
Mutual labels:  rsa
Myst
Secure Multiparty Key Generation, Signature and Decryption javacard applet
Stars: ✭ 21 (-68.18%)
Mutual labels:  decryption
Low Latency Android Ios Linux Windows Tvos Macos Interactive Audio Platform
🇸Superpowered Audio, Networking and Cryptographics SDKs. High performance and cross platform on Android, iOS, macOS, tvOS, Linux, Windows and modern web browsers.
Stars: ✭ 1,121 (+1598.48%)
Mutual labels:  rsa
Learningmasteringalgorithms C
Mastering Algorithms with C 《算法精解:C语言描述》源码及Xcode工程、Linux工程
Stars: ✭ 615 (+831.82%)
Mutual labels:  rsa
Mirage Crypto
Cryptographic primitives for MirageOS
Stars: ✭ 39 (-40.91%)
Mutual labels:  rsa
Hat.sh
encrypt and decrypt files in your browser. Fast, Secure client-side File Encryption and Decryption using the web crypto api
Stars: ✭ 886 (+1242.42%)
Mutual labels:  decryption
Java Crypto Utils
Java Cryptographic, Encoding and Hash Utilities
Stars: ✭ 15 (-77.27%)
Mutual labels:  decryption
Lyra
A lightweight encryption tool designed for ease of use.
Stars: ✭ 22 (-66.67%)
Mutual labels:  decryption
Iocane
An odorless, tasteless NodeJS crypto library that dissolves instantly in liquid
Stars: ✭ 35 (-46.97%)
Mutual labels:  decryption
Ciphey
⚡ Automatically decrypt encryptions without knowing the key or cipher, decode encodings, and crack hashes ⚡
Stars: ✭ 9,116 (+13712.12%)
Mutual labels:  decryption
Simple Polymorphic Engine Spe32
Simple Polymorphic Engine (SPE32) is a simple polymorphic engine for encrypting code and data. It is an amateur project that can be used to demonstrate what polymorphic engines are.
Stars: ✭ 59 (-10.61%)
Mutual labels:  decryption
Swcrypt
RSA public/private key generation, RSA, AES encryption/decryption, RSA sign/verify in Swift with CommonCrypto in iOS and OS X
Stars: ✭ 632 (+857.58%)
Mutual labels:  rsa
Silver Sniffle
Ncurses TCP Chat
Stars: ✭ 38 (-42.42%)
Mutual labels:  rsa
Enigma
Enigma cipher tool
Stars: ✭ 13 (-80.3%)
Mutual labels:  decryption
Rsa Javascript
rsa-javascript
Stars: ✭ 13 (-80.3%)
Mutual labels:  rsa
Dbtransitencryption
Secure data before sending it over the internet
Stars: ✭ 20 (-69.7%)
Mutual labels:  rsa

android-rsa

rsa encryption and decryption by android

License Download

Import

add to build.gradle,${latest.version} is Download

dependencies {
    compile 'com.blakequ.rsa:rsa:${latest.version}'
}

maven

<dependency>
  <groupId>com.blakequ.rsa</groupId>
  <artifactId>rsa</artifactId>
  <version>${latest.version}</version>
  <type>pom</type>
</dependency>

How to use

you can download example and study how to use

For server code, you can find in example:com/blakequ/rsademo/javalib

1. set key

FileEncryptionManager mFileEncryptionManager = FileEncryptionManager.getInstance();
//1.you can use generate public and private key
mFileEncryptionManager.generateKey();
//you can invoke getPublickey() and getPrivateKey() to save key to local file

//or 2.set public key and private key by youself(not use auto generate key)
mFileEncryptionManager.setRSAKey(String publicKey, String privateKey);
mFileEncryptionManager.setRSAKey(RSAPublicKey publicKey, RSAPrivateKey privateKey)

2. encrypt file or data

byte[] data = FileUtils.getBytesFromInputStream(getResources().getAssets().open("*.txt"));
//from byte array
byte[] result = mFileEncryptionManager.encryptFileByPublicKey(data, saveEncryFile);
//or from file
byte[] result = mFileEncryptionManager.encryptFileByPublicKey(ogirialFile, saveEncryFile);

3. decrypt file or data

byte[] result = mFileEncryptionManager.decryptFileByPrivateKey(encryFile, decryFile);
byte[] result = mFileEncryptionManager.decryptFileByPrivateKey(encryByteData, decryFile);

link

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].