Re: Encryption/Decryption of data

2008-10-07 Thread titang

It sounds good, but what about if the data must be accessible by many
users.
For example I want to let 2 users to access the same datas with their
own passphrase...

Is there a simple way to do that ?

Titang

On Oct 8, 11:03 am, Joel Perras [EMAIL PROTECTED] wrote:
 Simple solution: Generate a pseudo-random string of characters (or let
 him choose his own passphrase), and use this as a salt to encrypt your
 data before saving to your database. The passphrase must then be used
 to retrieve any information from the database.

 Of course, all of this is completely useless if you don't use SSL for
 the entire request/response process.

 -J.

 On Oct 7, 3:50 am, titang [EMAIL PROTECTED] wrote:

  Hi,
  I would like to encrypt/decrypt data in my application regarding the
  following requirements:
  - The data will be decrypted by many users.
  - I dont want to keep the secret password for decrypting the data of
  each users in my application.

  Does someone have any idea about how can I do this ? And if there is
  something already implemented for the cakephp framework?

  There is something pretty good, it is the gnupg 
  project.http://www.gnupg.org/
  I did my first test by command line on Linux, and it seems really
  good.
  1. First i have to generate one public key per users (from an uid and
  a passphrase).
  2. Then i encrypt  the data and specify which users can access the
  data (by specifying the uid).
  3. And the authorized users can decrypt the data with their own
  passphrase

  An extension gnupg is available for php.
  What about a cakephp behavior using this extension? I think it could
  be very useful.

  Any suggestions or helps are welcome !

  Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: cakephp rendering

2007-06-27 Thread Titang

if ($this-RequestHandler-isAjax()){
 $this-render('edit','ajax');
}

if your action are called by ajax, the view will be rendered with the
layout ajax

Titang

On 10 May, 02:58, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Sliv wrote:
 http://manual.cakephp.org/chapter/request_handler

 yeah thanks, but there is no sample in my case w

 my code

 controller Email
 var $components = array('RequestHandler');

 function index()
{
$this-RequestHandler-setAjax($this);
}

 function edit()
{
$this-render('edit');
}

 index.thtml
 if ?php $this-render('edit'); ? /* double layout*/
 if ?php $this-render('edit','ajax'); ? /* no layout at all, ajax
 action inside edit.thtml not working*/

 what I am missing ? please give me a sing


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Pagination in 1.2 error :(

2007-06-18 Thread Titang

Very strange, I used var $uses with many models and the paginator
works very well. I dont think it is the reason of the error. Can you
send your code?

Titang


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---