Simpke funtion for simple encryption ms sql 2005

Posted on 2007-10-03
Last Modified: 2010-03-19
I need a simple function or stored procedure to make a simple encryption of a character field

Say A string with all the letters in random order ("swart.....) call it a key such that a will transform into, b into w etc... nothing fancy.

And a function that will create the key.

simple and very crackable but I need it
Question by:robrodp
    LVL 30

    Expert Comment

    Do you want to go a step further and use 'proper' encryption? You need to set it up but then you just use the EncryptByKey function to encrypt stuff.
    LVL 27

    Accepted Solution


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    If you having speed problem in loading SQL Server Management Studio, try to uncheck these options in your internet browser (IE -> Internet Options / Advanced / Security):    . Check for publisher's certificate revocation    . Check for server ce…
    Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    26 Experts available now in Live!

    Get 1:1 Help Now