How to encrypt and decrypt an existing column ?

i want encryption of column in Sql.i have tried using symmetric key,but is there something simple.With HashBytes () we can encrypt but not decrypt

insert into table (mycolumn) values (encode('myvalue', 'mykey'))
select decode(mycolumn, 'mykey') from table

i had solved it using PwdEncrypt() and PwdCmpare()

Thanks anyway....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.