From 718822d48abbdf7181b45e5d013f90e577996784 Mon Sep 17 00:00:00 2001 From: Scott Alexander-Bown Date: Sat, 4 Oct 2014 17:56:55 +0100 Subject: [PATCH 1/2] Added reference to newly created AESCrypt-Android --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0040df0..e7789ef 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ AESCrypt is a simple to use, opinionated AES encryption / decryption Ruby gem th AESCrypt uses the AES-256-CBC cipher and encodes the encrypted data with Base64. -A corresponding gem to easily handle AES encryption / decryption in Objective-C is available at http://github.com/Gurpartap/AESCrypt-ObjC. +A corresponding gem to easily handle AES encryption / decryption in Objective-C is available at http://github.com/Gurpartap/AESCrypt-ObjC or Android/Java at https://github.com/scottyab/AESCrypt-Android created by [Scott Alexander-Bown](https://github.com/scottyab) ## Installation @@ -62,6 +62,24 @@ Decrypting See the Objective-C class README at http://github.com/Gurpartap/AESCrypt-ObjC for more details. +## Corresponding usage in Java +The AESCrypt Java class, available at https://github.com/scottyab/AESCrypt-Android + +Here's how you would use the AESCrypt Java class: + + String message = "top secret message"; + String password = "p4ssw0rd"; + +Encrypting + + String encryptedData = AESCrypt.encrypt:password, message); + +Decrypting + + String message = AESCrypt.decrypt(password, encryptedData); + + + ## License Copyright (c) 2012 Gurpartap Singh From c5379a1583b595d2c59b1a02d59b4f4f7c9b6638 Mon Sep 17 00:00:00 2001 From: Scott Alexander-Bown Date: Sat, 4 Oct 2014 17:57:52 +0100 Subject: [PATCH 2/2] Missed bracket --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e7789ef..70671cc 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Decrypting See the Objective-C class README at http://github.com/Gurpartap/AESCrypt-ObjC for more details. -## Corresponding usage in Java +## Corresponding usage in Android/Java The AESCrypt Java class, available at https://github.com/scottyab/AESCrypt-Android Here's how you would use the AESCrypt Java class: @@ -72,7 +72,7 @@ Here's how you would use the AESCrypt Java class: Encrypting - String encryptedData = AESCrypt.encrypt:password, message); + String encryptedData = AESCrypt.encrypt(password, message); Decrypting