473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Encrypt/decrypt automatically with PHP PDF document via Client CA

Hi Everybody,

Does anybody know whether it is possible to encrypt AUTOMATICALLY in PHP
(at the server side) an Adobe PDF document (also stored at the server side)
by using a public key coming from a certificat of the client that want to
retreive, decrypt (with his private key) and read the PDF document ?

I would like to distribute PDF document to certified clients for which they
could only read the document on their PC that owns the certificat
(public/private keys) that has been used to encrypt the document at the
server side and allow to decrypt it at the client side.

Many thanks in advance for you help

Steph
Apr 16 '07 #1
4 2992
Steph wrote:
Hi Everybody,

Does anybody know whether it is possible to encrypt AUTOMATICALLY in PHP
(at the server side) an Adobe PDF document (also stored at the server side)
by using a public key coming from a certificat of the client that want to
retreive, decrypt (with his private key) and read the PDF document ?

I would like to distribute PDF document to certified clients for which they
could only read the document on their PC that owns the certificat
(public/private keys) that has been used to encrypt the document at the
server side and allow to decrypt it at the client side.

Many thanks in advance for you help

Steph

Forget it. Most clients don't have certificates, and even if they did,
they could copy the certificate to another machine.

If it were that easy we wouldn't have the problem with piracy (both
software and entertainment) that exists in the world today.

The fact is - once I download your PDF, I can pretty much do as I please
with it. If you don't want others to have it, don't distribute it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Apr 17 '07 #2
NC
On Apr 16, 3:49 pm, "Steph" <mcv...@hotmail.comwrote:
>
I would like to distribute PDF document to certified clients
for which they could only read the document on their PC
that owns the certificat (public/private keys) that has been
used to encrypt the document at the server side and allow
to decrypt it at the client side.
You are going about it in a wrong way. Instead of encrypting PDF, you
should produce an e-book. Although e-books are not exactly hacker-
proof, either...

Cheers,
NC

Apr 17 '07 #3

"NC" <nc@iname.coma écrit dans le message de news:
11**********************@p77g2000hsh.googlegroups. com...
On Apr 16, 3:49 pm, "Steph" <mcv...@hotmail.comwrote:
>>
I would like to distribute PDF document to certified clients
for which they could only read the document on their PC
that owns the certificat (public/private keys) that has been
used to encrypt the document at the server side and allow
to decrypt it at the client side.

You are going about it in a wrong way. Instead of encrypting PDF, you
should produce an e-book. Although e-books are not exactly hacker-
proof, either...

Cheers,
NC
Do you have a recommandation about what e-book to use ?
I'm not very familiar about it
Apr 17 '07 #4

"Jerry Stuckle" <js*******@attglobal.neta écrit dans le message de news:
Zp******************************@comcast.com...
Steph wrote:
>Hi Everybody,

Does anybody know whether it is possible to encrypt AUTOMATICALLY in PHP
(at the server side) an Adobe PDF document (also stored at the server
side) by using a public key coming from a certificat of the client that
want to retreive, decrypt (with his private key) and read the PDF
document ?

I would like to distribute PDF document to certified clients for which
they could only read the document on their PC that owns the certificat
(public/private keys) that has been used to encrypt the document at the
server side and allow to decrypt it at the client side.

Many thanks in advance for you help

Steph

Forget it. Most clients don't have certificates, and even if they did,
they could copy the certificate to another machine.

If it were that easy we wouldn't have the problem with piracy (both
software and entertainment) that exists in the world today.

The fact is - once I download your PDF, I can pretty much do as I please
with it. If you don't want others to have it, don't distribute it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Thanks for your advice !
Apr 17 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: wqhdebian | last post by:
As far as I know,when encrypt or decrypt ,a key must first be got,and the key is first generate by a tool or from SecurityRandom,that means I can not generate the same key with the same input.Does...
4
by: Spikinsson | last post by:
I'm looking for a good decrypt/encrypt function, all I want is a function in this form: char* encrypt(char* normal) { ... return encrypted; } and
11
by: underwmd | last post by:
Hello, My problem is two fold. 1) I must support a deployed legacy application written in VB6 SP5. I need to export data from a database, compress it and the encrypt the data using 3DES (to...
1
by: Benoît | last post by:
Hi, I have generated two keys : "C:>openssl req -nodes -new -x509 -keyout ben.key -out ben.crt -days 3650" I try to encrypt/decrypt a string like "JOHN" with these asymetrics keys. With the...
8
by: Gidi | last post by:
Hi, Is there Buid-In fuction in C# that Encrypt and Decrypt strings? i have a textbox which i'm writing into file, and i want to encrypt it before writing, i'm not looking for something fancy,...
8
by: toupeira23 | last post by:
Hello, I'm trying to encrypt passwords in my app. After discovering that there's no simple function to do this, I wrote a wrapper class which decodes a string using UTF8, encrypts it with...
4
by: Islamegy® | last post by:
I give up.. I tried everything to encrypt querystring and decrypt it back but this never success.. i use RSA encryption. I always get excption when Convert fromBase64String so i tried...
2
by: Mr. Richardson | last post by:
Well i've been trying by converting the datatable with the WriteXml() encrypted and save it to a file, and at the moment it has been from one error to another. Maybe someone has allready done...
3
by: JDeats | last post by:
I have some .NET 1.1 code that utilizes this technique for encrypting and decrypting a file. http://support.microsoft.com/kb/307010 In .NET 2.0 this approach is not fully supported (a .NET 2.0...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.