Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional iOS Network Programming: Connecting the Enterprise to the iPhone and iPad
This is the forum to discuss the Wrox book Professional iOS Network Programming: Connecting the Enterprise to the iPhone and iPad by Jack Cox, Nathan Jones, John Szumski; ISBN: 978-1-118-36240-2
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional iOS Network Programming: Connecting the Enterprise to the iPhone and iPad section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 12th, 2014, 05:18 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 6 : String Encryption/Decryption

Hi,
I tried to leverage the Encryption category that is available on the String. Return value of the selector decryptedWithAESUsinKey:andIV (page # 142) is always null eventhough the decrypted (NSData object) has value. I took the sample code available on this website and still I am getting null. Any pointers on where should I look at.

Thanks
Reply With Quote
  #2 (permalink)  
Old February 18th, 2014, 07:34 AM
Wrox Author
Points: 61, Level: 1
Points: 61, Level: 1 Points: 61, Level: 1 Points: 61, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2012
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey @simpleLearner - sorry to hear you're experiencing issues. Can you explain your setup a little more? Are you decrypting a server response or something you've encrypted locally? If you haven't tried locally, I would give that a shot. If you're decrypting a server response I'd double check the key and IV value are the same and that you've set the correct padding, etc.

Hope that helps.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Encryption/Decryption Problem param99 SQL Server 2000 4 December 14th, 2006 04:20 AM
Encryption and Decryption kvanchi General .NET 1 February 2nd, 2005 01:04 PM
Encryption and Decryption kvanchi General .NET 2 January 24th, 2005 01:52 PM
Encryption/Decryption using IUSR msrnivas General .NET 0 January 11th, 2005 11:35 PM
SHA1 Encryption/Decryption help kakko72 General .NET 2 April 16th, 2004 03:12 PM



All times are GMT -4. The time now is 04:33 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.