>>>I see, I would never use that as an "encryption" for myself.
>>
>>Why not?
>
>Seed is derived from the string itself. This means the string will always be encrypted the same way. You need an external seed independent from the string. Most people use the pk or timestamp of the record where the string is saved.
I actually do use a seed based on the PK value with additional "twist". So that even if someone has the table and knows the PK value, they would have to figure my "twist". And if they do, they deserve to have the data :)
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham