Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 12th, 2014, 06:18 PM
Registered User
 
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
 
Old February 18th, 2014, 08:34 AM
Wrox Author
 
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.





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.