iphone - Encoding/Decoding using NSData+Base64.h -


i have encrypted data i'm converting base64. having difficulty converting string nsdata can use decryption.

nsdata *encrypteddata = [self encrypt:_secretdata key:[self md5data:_key] padding:&padding]; //i've tried different data nsstring *cyphertext = [encrypteddata base64encodingwithlinelength:0]; //this works fine [cyphertext datausingencoding:nsutf8stringencoding];  //this returns many bytes ... it's longer original data 

i'm using standard "nsdata+base64.h" dave winer - found on github.

any tips on how convert string same nsdata object?

using counterparts maybe?

 + (nsdata *) datawithbase64encodedstring:(nsstring *) string 

note converting base64 must brings multiple of 4...


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -