asp.net - AES256 encryption and decryption in ASP -
i have send username , password iphone app asp server page, , encrypt them using: http://iphonedevelopment.blogspot.com/2009/02/strong-encryption-for-cocoa-cocoa-touch.html. best way decrypt these strings on asp page? found examples, since encryption happen on 2 unrelated sides, think need hard code key in on both sides, , can't find examples don't have use generated keys.
thanks!
yes, key management big problem. have have keys on both sides, on ios can save key in keychain, secure process there securely more difficult.
the other main issue getting parameters same on both sides. of particular interest are
- encryption key value , size
- mode: cbc, ecb, etc. (you should using cbc)
- initialization vector (iv) needed modes
- padding method: pkcs7, etc. (aes block cypher , needs input in multiple of block size)
Comments
Post a Comment