Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Cakephp SSN Encryption
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Steven Scaffidi  
View profile  
 More options Apr 30 2012, 5:46 pm
From: Steven Scaffidi <ssca...@gmail.com>
Date: Mon, 30 Apr 2012 14:46:45 -0700 (PDT)
Local: Mon, Apr 30 2012 5:46 pm
Subject: Cakephp SSN Encryption
Hi - I'm looking for information on how to encrypt data in Cakephp. My
employer had a client management system built in Microsoft Access, and
I recently took that application and put it on a web-based space built
in cake. I need to now two things:

#1 How can I encrypt social security numbers from new clients coming
into the system? I'm encrypting passwords right now, but I'm not sure
how to do social security numbers.

#2 How do I take social security numbers that are currently listed in
Microsoft Access with no encryption and put them into the MySQL
database encrypted?

Thanks for the help,

Steven


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven Scaffidi  
View profile  
 More options May 1 2012, 3:01 pm
From: Steven Scaffidi <ssca...@gmail.com>
Date: Tue, 1 May 2012 12:01:12 -0700 (PDT)
Local: Tues, May 1 2012 3:01 pm
Subject: Re: Cakephp SSN Encryption
Thanks for the plugin that worked great. I still don't understand how
to use pentaho though to encrypt social security numbers listed in the
access database.

On Apr 30, 5:28 pm, Justin Edwards <justinledwa...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven Scaffidi  
View profile  
 More options May 1 2012, 3:18 pm
From: Steven Scaffidi <ssca...@gmail.com>
Date: Tue, 1 May 2012 12:18:29 -0700 (PDT)
Local: Tues, May 1 2012 3:18 pm
Subject: Re: Cakephp SSN Encryption

Ok I have the data migrated already (I probably should have used something
like pentaho instead of writing my own queries but oh well). How do I use
cake's encryption function on the data?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven Scaffidi  
View profile  
 More options May 2 2012, 4:03 pm
From: Steven Scaffidi <ssca...@gmail.com>
Date: Wed, 2 May 2012 13:03:46 -0700 (PDT)
Local: Wed, May 2 2012 4:03 pm
Subject: Re: Cakephp SSN Encryption

Can you give me a specific example of how to use saveMany? I have 4000
clients in my database. Can I create another encrypted field in the
database (say ssn_temp) then do something like this:

$this->User->saveMany(array(array('ssn_temp' => array('User' => 'ssn'))));

Would something like that work? I'm really confused by the documentation on
saveMany


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven Scaffidi  
View profile  
 More options May 2 2012, 4:39 pm
From: Steven Scaffidi <ssca...@gmail.com>
Date: Wed, 2 May 2012 13:39:50 -0700 (PDT)
Local: Wed, May 2 2012 4:39 pm
Subject: Re: Cakephp SSN Encryption

I created SSN through using regular sql and just literally copying whats in
the ssn field to the ssn_temp field. And then, this would work if it didn't
time out on me. How can I change the timeout time? There has to be a better
way to do this though.

public function encryptssn() {
$ssns = $this->User->find('list', array('fields' => array('id',
'ssn_temp')));
$j = 1;
foreach ($ssns as $i) {
$this->User->id = $j;
$this->User->saveField('ssn', $i);
$j++;

}

$this->redirect(array('action' => 'index'));

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven Scaffidi  
View profile  
 More options May 4 2012, 2:40 pm
From: Steven Scaffidi <ssca...@gmail.com>
Date: Fri, 4 May 2012 11:40:49 -0700 (PDT)
Local: Fri, May 4 2012 2:40 pm
Subject: Re: Cakephp SSN Encryption

Just in case anyone found this useful here is an update. This finally
worked:

$ssns = $this->User->query("SELECT id, ssn_temp FROM users as User ORDER BY
id");
foreach ($ssns as $i) {
$this->User->id = $i['User']['id'];
$this->User->saveField('ssn', $i['User']['ssn_temp']);

}

Also be sure to put set_time_limit(0); in your bootstrap.php file.

Thanks for all the help Justin.

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »