Using string cryptography in Rails

Hi,

I’m needing crytography a string in a Rails app. How is the better way
to do
this??

Thanks,


Weverton G. de Morais
Tecnólogo em Redes de Comunicação
Desenvolvedor Delphi
Entusiasta Ruby/Rails
“Todos juntos somos fortes”

On 6 Dec 2007, at 11:37, Weverton G. wrote:

Hi,

I’m needing crytography a string in a Rails app. How is the better
way to do this??

You could use the ruby openssl standard library.

Fred

Thanks

2007/12/6, Frederick C. [email protected]:

You could use the ruby openssl standard library.

“Todos juntos somos fortes”


Weverton G. de Morais
Tecnólogo em Redes de Comunicação
Desenvolvedor Delphi
Entusiasta Ruby/Rails
“Todos juntos somos fortes”

On 12/6/07, ebrad [email protected] wrote:

I struggled with this a couple weeks ago for saving Social Security
Numbers and Salaries in the DB encrypted. Not sure how secure this is,
but this is perhaps a start:

Parked at Loopia

In my latest project I needed to encrypt cc numbers. I based my code
on this blog
http://blog.leetsoft.com/2006/03/14/simple-encryption

Nothing needed except the standard ruby library.


Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

I struggled with this a couple weeks ago for saving Social Security
Numbers and Salaries in the DB encrypted. Not sure how secure this is,
but this is perhaps a start:

http://pastie.caboo.se/125436