# Using act\_as\_authenticated and convert existing user table

**URL:** <https://www.ruby-forum.com/t/using-act-as-authenticated-and-convert-existing-user-table/106496>\
**Category:** Rails\
**Created:** [June 11, 2007, 10:38am UTC](https://www.ruby-forum.com/t/using-act-as-authenticated-and-convert-existing-user-table/106496 "2007-06-11T10:38:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![farfignugen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f17d59/32.png) [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Post date:** [June 11, 2007, 10:38am UTC](https://www.ruby-forum.com/t/using-act-as-authenticated-and-convert-existing-user-table/106496/1 "2007-06-11T10:38:31Z")

</div>

Hi,

I am a rails newbie and I can’t find out how to use act\_as\_authenticated  
with  
an existing user table.

The problem is that I can not figure out how  
to encrypt all existing passwords/logins to the  
fields encrypted\_password/salt for each row in my user table.

The user table is already migrated and the AAA plugin works well with  
new records/users but I also need to convert the remain 28000 records.

Anybody out there who can point me in the right direction?

Thank you  
Chris
