All Projects → WelkinXie → AESCipher-Java

WelkinXie / AESCipher-Java

Licence: MIT License
AES encryption working between Objective-C and Java.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to AESCipher-Java

Hat.sh
encrypt and decrypt files in your browser. Fast, Secure client-side File Encryption and Decryption using the web crypto api
Stars: ✭ 886 (+906.82%)
Mutual labels:  aes, aes-encryption, decryption
Python-File-Encryptor
Encrypt and Decrypt files using Python (AES CBC MODE)
Stars: ✭ 51 (-42.05%)
Mutual labels:  aes, aes-encryption, decryption
Aescipher Ios
AES encryption working between Objective-C and Java.
Stars: ✭ 198 (+125%)
Mutual labels:  aes, aes-encryption, decryption
abrute
Multi-threaded AES Brute Force File Decryption
Stars: ✭ 22 (-75%)
Mutual labels:  aes, aes-encryption, decryption
Gonnacry
A Linux Ransomware
Stars: ✭ 341 (+287.5%)
Mutual labels:  aes, aes-encryption, decryption
Cross Platform Aes
Simple cross-platform encryption and decryption using AES
Stars: ✭ 127 (+44.32%)
Mutual labels:  aes, aes-encryption, decryption
Laravel Database Encryption
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
Stars: ✭ 238 (+170.45%)
Mutual labels:  aes, decryption
CryptoKnight
CryptoKnight is a general purpose cryptography desktop app
Stars: ✭ 18 (-79.55%)
Mutual labels:  aes, aes-encryption
cryptalk
HTML5/Node.js based, client side (E2EE) encrypted instant chat
Stars: ✭ 73 (-17.05%)
Mutual labels:  aes, aes-encryption
cryptopocket
🔐 Encrypt anything, then Decrypt by providing a required key.
Stars: ✭ 22 (-75%)
Mutual labels:  aes, decryption
PassLock
PassLock is a medium-security password manager that encrypts passwords using Advanced Encryption Standards (AES)
Stars: ✭ 44 (-50%)
Mutual labels:  aes, aes-encryption
openssl
A functions wrapping of OpenSSL library for symmetric and asymmetric encryption and decryption.
Stars: ✭ 199 (+126.14%)
Mutual labels:  aes, aes-encryption
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 (+3036.36%)
Mutual labels:  aes, decryption
Qt Aes
Native Qt AES encryption class
Stars: ✭ 207 (+135.23%)
Mutual labels:  aes, aes-encryption
libVES.c
VESvault End-to-End Encryption API: Encrypt Everything Without Fear of Losing the Key
Stars: ✭ 28 (-68.18%)
Mutual labels:  aes, aes-encryption
Securedefaults
A lightweight wrapper over UserDefaults/NSUserDefaults with an additional layer of AES-256 encryption
Stars: ✭ 179 (+103.41%)
Mutual labels:  aes, aes-encryption
crypthash-net
CryptHash.NET is a .NET multi-target library to encrypt/decrypt/hash/encode/decode strings and files, with an optional .NET Core multiplatform console utility.
Stars: ✭ 33 (-62.5%)
Mutual labels:  aes, decryption
WebCrypto.swift
A small collection of cryptographic functions based on the JavaScript WebCrypto API.
Stars: ✭ 16 (-81.82%)
Mutual labels:  aes, decryption
cryptorious
CLI Password Manager
Stars: ✭ 15 (-82.95%)
Mutual labels:  aes, decryption
Padding Oracle Attacker
🔓 CLI tool and library to execute padding oracle attacks easily, with support for concurrent network requests and an elegant UI.
Stars: ✭ 136 (+54.55%)
Mutual labels:  aes, decryption

AESCipher-Java

AES Encryption For Java

Using this code for Android and Java back-end and AESCipher-iOS for iOS lets you encrypt and decrypt with AES accurately.

Encryption:

// For String
public static String aesEncryptString(String content, String key)
// For Bytes
public static byte[] aesEncryptBytes(byte[] contentBytes, byte[] keyBytes)

Decryption:

// For String
public static String aesDecryptString(String content, String key)
// For Bytes
public static byte[] aesDecryptBytes(byte[] contentBytes, byte[] keyBytes)

Additionally you can modify the IV_STRING with another 16 bytes string in line 23 of AESCipher.java , but you should make sure to keep it the same with kInitVector in line 14 of AESCipher-iOS.


用 Java 实现的 AES 加密。

AESCipher-iOS 一并使用能达到 在iOS、Android、Java后台产生相同密文、正确解密成明文的目的。

加密方法:

// For String
public static String aesEncryptString(String content, String key)
// For Bytes
public static byte[] aesEncryptBytes(byte[] contentBytes, byte[] keyBytes)

解密方法:

// For String
public static String aesDecryptString(String content, String key)
// For Bytes
public static byte[] aesDecryptBytes(byte[] contentBytes, byte[] keyBytes)

另外你也可以将 AESCipher.java 第 23 行中的 IV_STRING 修改为其他 16 字节的字符串,但请确保其与 AESCipher-iOS 第 14 行处的 kInitVector 保持一致。

另附源码详解一份:

AES加密 - iOS与Java的同步实现

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].