Comments (5)
What is the expected Decrypted data ? This looks like duplicate of this issue - #10 (comment)
Make sure your IV is 16 characters and consider randomizing your IV.
from cross-platform-aes-encryption.
Hello Navneet,
My encrypted string is :
97Dfy+pLJFA+RqYR8nX8YFr6JuVC5UUOQceV93kN4aUU+qUvjMa+2Z1iifcrG/U6
Actual string is :
This is test Encryption String One
string iv = "VFSGlobalApp";
string key = CryptLib.getHashSha256("VFSGlobalApp", 31); //32 bytes = 256
bits
Then i decrypt this encrypted text then i get nothing.
Thanks & Regards,
Manish Mundra
On Tue, Jun 16, 2015 at 11:40 PM, Navneet Kumar [email protected]
wrote:
What is the expected Decrypted data ? This looks like duplicate of this
issue - #10 (comment)
#10 (comment)Make sure your IV is 16 characters and consider randomizing your IV.
—
Reply to this email directly or view it on GitHub
#15 (comment)
.
from cross-platform-aes-encryption.
Did you read my previous comment and implement changes accordingly ?
from cross-platform-aes-encryption.
Yes, i did but response is not according my encrypted string.
NSString *iv = @"GlobalApp";
NSString *key = [[CryptLib alloc]sha256:@"GlobalApp"
length:32];//getHashSha256(@"GlobalApp", 31); //32 bytes
NSString * secret = @"This is test Encryption String Two";
- Output : *
r+jolqNoBBq/XCV9rrXzQwmFt8jCD/AHYdzIG/ECVUAVFsAIaYOQy+xzYrq8/Ayx
NSData * encryptedData = [[CryptLib alloc] encrypt:[secret
dataUsingEncoding:NSUTF8StringEncoding] key:key iv:iv];
NSString *encryptedText = [encryptedData
base64EncodingWithLineLength:0];
NSData * decryptedData = [[CryptLib alloc] decrypt:[encryptedText
dataUsingEncoding:NSUTF8StringEncoding] key:key iv:iv];
NSString * decryptedText = [decryptedData
base64EncodingWithLineLength:0];
*Output : *
Mk8OOh3yQ3KyddqzQ/xjReakOoUMcXBGXmZT0ZzUNrGNgRF/rwFkGZBup3j0k5LT5Cw3x+9201F89ri3l610qg==
Thanks & Regards,
Manish Mundra
On Wed, Jun 17, 2015 at 9:56 AM, Navneet Kumar [email protected]
wrote:
Did you read my previous comment and implement changes accordingly ?
—
Reply to this email directly or view it on GitHub
#15 (comment)
.
from cross-platform-aes-encryption.
What is your IV ? In your code you have used - NSString *iv = @"GlobalApp"; This has just 9 characters while I had mentioned that you'll need at least 16 characters.
from cross-platform-aes-encryption.
Related Issues (20)
- Encrypt in java and Decrypt in IOS - Not working HOT 1
- Decryption result getting null in IOS
- Encryption in c# is broken if string to encode contains non English characters (with fix)
- iOS Swift Problem HOT 2
- encryption and decryption error when I encrypt a long string with C#
- Not working in IOS. Please check before using. HOT 2
- How to implement encryption and decryption in PHP? HOT 1
- Encrypted string in C# and Decryption IOS vise versa not working
- Facing problem while decryption in iphone5
- Cancelled issue reporter's mistake
- string decryption failed in c# which encrypted in objective c
- Android encryption and decryption facing issue
- The key is not correctly converted to hex string in iOS 13 beta
- Add authentication
- How can i use it in Swift 5 or 4 HOT 1
- .Net Support
- Unable to decrypt my encrypted data. HOT 2
- Refactor - c#, android and web
- Request for a feature in Golang
- Cut big Sentence after Decrypt
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cross-platform-aes-encryption.