English 中文(简体)
我如何从开放式SSL加密数据中获得初始化矢量(四)
原标题:How do I get the initialization vector (iv) from OpenSSL encrypted data

Disclaimer: New to cryptography.

I have an external process that uses OpenSSL to encrypt data, which right now, uses a salt.

一台电脑对服务器的数据进行跟踪,将其下载到文件目录,需要加以加密。 本处不包括开放式特别图书馆。 你们能够建设这一环境,但是它既困难又trick。 “最容易”的解决方案一经发现,在Stackoverflows的帮助下,将使用<代码>。 CommonCrypto/CommonCryptor.h,这是《安全框架》的一部分。

But the C function to decrypt data needs an iv to correctly decrypt.

是否有办法从加密数据中推断出四分五分之四(对我来说,似乎像它会否定额外的安全)? 或者,我是否有必要首先具体阐明四点how,让 iPhone子知道什么? 或者,仅仅不使用盐?

Edit1:为了澄清,Im利用开放式特别安全局将加密文本放在数据档案中。 使用开放式特别安全法的文字对案文进行加密,上载到Drop Box,然后由Drop Box 下载该文档,对它进行分类,并试图对文本进行加密。

Edit2: 是的,使用开放式特别安全局指挥线的Im, 符合-pass选项。

最佳回答

应为每个加密信息随机选择四。 我假设你正在使用开放式特别轨道指挥系统, opensl enc,但不清楚你是否使用密码加密(<代码>-pass和-salt的备选办法),或明确指明关键内容(<代码>-K和-IV备择)。

就最佳安全而言,我建议你采用K-K办法,并随机为每个信息生成新的四级。 附录四和正文。 例如,你可以在一份档案中将电离层对四,然后在你准备进行加密时,从档案一开始就将四条隔开。

第四部分是公开的;你不必隐藏。 重要的是,你对每项信息使用不可预测的四。

问题回答

• 查阅:http://www.x2on.de 201007/13/tutorial-iphone-app-with-compiled- opensl-1-0-0a-library/“rel="nofollow”http://www.x2on.de/ 201007/13/tutorial-iphone-app-with-compiled-opensl-1-0-0a-library/ 确实很简单。

!





相关问题
Extend Contacts application on Android to provide encryption

I want to encrypt individual contacts stored by the Contacts application on Android based on user s preference. So, I am thinking I ll have to hook/extend the Contacts application before the it stores ...

Make md5 strong

Im making a website that will intergrate with game that only support md5 hashing metod (atm). Which ofc is not especially safe anymore. But how could i make it stronger? Should I just generate long ...

How to Pack/Encrypt/Unpack/Decrypt a bunch of files in Java?

I m essentially trying to do the following on a Java/JSP-driven web site: User supplies a password Password is used to build a strongly-encrypted archive file (zip, or anything else) containing a ...

Thread & Queue vs Serial performance

I though it ll be interesting to look at threads and queues, so I ve written 2 scripts, one will break a file up and encrypt each chunk in a thread, the other will do it serially. I m still very new ...

Convert PHP encryption code to C#

I m trying to convert this piece of code from PHP to C#. It s part of a Captive Portal. Could somebody explain what it does? $hexchal = pack ("H32", $challenge); if ($uamsecret) { $newchal = ...

Encryption: how to have 1 iv despite multiple fields

I ve been stuck trying to arrive at a best solution for this for a while. I know that an initialization vector has to be unique for each item being encrypted. So if I m encrypting an address and I ...

热门标签