All Projects → WelkinXie → Aescipher Ios

WelkinXie / Aescipher Ios

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

Projects that are alternatives of or similar to Aescipher Ios

Cross Platform Aes
Simple cross-platform encryption and decryption using AES
Stars: ✭ 127 (-35.86%)
Mutual labels:  aes, decryption, aes-encryption
Gonnacry
A Linux Ransomware
Stars: ✭ 341 (+72.22%)
Mutual labels:  aes, decryption, aes-encryption
Python-File-Encryptor
Encrypt and Decrypt files using Python (AES CBC MODE)
Stars: ✭ 51 (-74.24%)
Mutual labels:  aes, aes-encryption, decryption
AESCipher-Java
AES encryption working between Objective-C and Java.
Stars: ✭ 88 (-55.56%)
Mutual labels:  aes, aes-encryption, decryption
Hat.sh
encrypt and decrypt files in your browser. Fast, Secure client-side File Encryption and Decryption using the web crypto api
Stars: ✭ 886 (+347.47%)
Mutual labels:  aes, decryption, aes-encryption
abrute
Multi-threaded AES Brute Force File Decryption
Stars: ✭ 22 (-88.89%)
Mutual labels:  aes, aes-encryption, decryption
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 (-83.33%)
Mutual labels:  aes, decryption
EasyAES
AES encrypt/decrypt, Android, iOS, php compatible(兼容php, Android, iOS平台)
Stars: ✭ 79 (-60.1%)
Mutual labels:  aes, decryption
EncrypC
🔑 File Encryption Application using Python.
Stars: ✭ 14 (-92.93%)
Mutual labels:  aes, aes-encryption
Link Lock
Password-protect URLs using AES in the browser; create hidden bookmarks without a browser extension
Stars: ✭ 418 (+111.11%)
Mutual labels:  aes, aes-encryption
Py7zr
7zip in python3 with ZStandard, PPMd, LZMA2, LZMA1, Delta, BCJ, BZip2, and Deflate compressions, and AES encryption.
Stars: ✭ 110 (-44.44%)
Mutual labels:  aes, decryption
Secure Ls
🔒 Secure localStorage data with high level of encryption and data compression
Stars: ✭ 486 (+145.45%)
Mutual labels:  decryption, aes-encryption
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 (-31.31%)
Mutual labels:  aes, decryption
Cryptr
A simple shell utility for encrypting and decrypting files using OpenSSL.
Stars: ✭ 81 (-59.09%)
Mutual labels:  decryption, aes-encryption
libVES.c
VESvault End-to-End Encryption API: Encrypt Everything Without Fear of Losing the Key
Stars: ✭ 28 (-85.86%)
Mutual labels:  aes, aes-encryption
osx-callhistory-decryptor
macOS (incl big sur) call history decryptor/converter to CSV format.
Stars: ✭ 19 (-90.4%)
Mutual labels:  aes, decryption
cryptorious
CLI Password Manager
Stars: ✭ 15 (-92.42%)
Mutual labels:  aes, decryption
Encryptor4j
Strong encryption for Java simplified
Stars: ✭ 92 (-53.54%)
Mutual labels:  aes, decryption
Xjar
Spring Boot JAR 安全加密运行工具,支持的原生JAR。
Stars: ✭ 692 (+249.49%)
Mutual labels:  aes, decryption
Hybrid Crypto Js
RSA+AES hybrid encryption implementation for JavaScript. Works with Node.js, React Native and modern browsers.
Stars: ✭ 87 (-56.06%)
Mutual labels:  aes, decryption

AESCipher-iOS

AES Encryption For Objective-C

Using this code for iOS and AESCipher-Java for Android and Java back-end lets you encrypt and decrypt with AES accurately. Coding with C style is just for security.

Encryption:

// For String 
NSString * aesEncryptString(NSString *content, NSString *key);
// For Data
NSData * aesEncryptData(NSData *data, NSData *key);

Decryption:

// For String 
NSString * aesDecryptString(NSString *content, NSString *key);
// For Data
NSData * aesDecryptData(NSData *data, NSData *key);

Attention , this repo is based on AES-128 so you should use a 16-byte-key . If you want to use AES-256 , change kKeySize to kCCKeySizeAES256 , and use 32 bytes' KEY.

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


用 Objective-C 实现的 AES 加密。

AESCipher-Java 一并使用能达到 在iOS、Android、Java后台产生相同密文、正确解密成明文的目的。用 C 的风格来编写是为了提高些许安全性。

加密方法:

// For String 
NSString * aesEncryptString(NSString *content, NSString *key);
// For Data
NSData * aesEncryptData(NSData *data, NSData *key);

解密方法:

// For String 
NSString * aesDecryptString(NSString *content, NSString *key);
// For Data
NSData * aesDecryptData(NSData *data, NSData *key);

注意 ,由于这个库是基于 AES-128 的,因此请确保传入的 KEY 大小为 16 字节。如果要使用 AES-256 ,修改 kKeySizekCCKeySizeAES256,然后提供 32 字节的 KEY 就可以了。

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

另附源码详解一份:

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