English 中文(简体)
他人的加密档案
原标题:Encrypting files for others

我试图列举一种办法,对使用PHP接口的其他用户进行加密,同时将其密码从系统管理员(类似于Droop箱)中保存。 我基本上需要为用户储存档案,但保持其密码不为人所知。 任何建议?

最佳回答

使用基数——64与私人钥匙保持一致。

http://php.net/manual/en/Function.base64-encode.php

• 在网页上检查用户配制编码,以使用一种习俗钥匙和盐碱,增加安全

问题回答

答案取决于谁提出档案,谁对档案进行加密,谁收集这些文件。 一般来说,当你需要为他人加密档案时,公用钥匙加密(PKI)就更有成效。 共有秘密计划(包括基于密码的计划)更糟。 有了公用钥匙基础结构,受访者就把公用钥匙保密。 您使用其公用钥匙对接收人档案进行加密,而且只有接收人才能将其加密为加密所需的私人钥匙。

您可以使用开放式的PGP技术或使用X.509证书进行公用钥匙基础结构加密。 首先,需要GnuPG,或需要PHP的一些PGP图书馆。 第二,你可以使用开放式特别安全局。





相关问题
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 ...

热门标签