Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Encrypt a field in the database.

Encrypt a field in the database.

Scheduled Pinned Locked Moved Database
databasecsharpsql-serversysadminquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vanikanc
    wrote on last edited by
    #1

    Hi, I have a field in the database that has credit card number in it. Bottom line, how can we encrypt this information using SQL SERVER? I need to encrypt it for a brief period of time, like 15 minutes, then the table is truncated. I am using sql server 2005 within C# program/

    L E 2 Replies Last reply
    0
    • V vanikanc

      Hi, I have a field in the database that has credit card number in it. Bottom line, how can we encrypt this information using SQL SERVER? I need to encrypt it for a brief period of time, like 15 minutes, then the table is truncated. I am using sql server 2005 within C# program/

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      This[^] topic describes how to encrypt a column of data by using symmetric encryption in SQL Server 2012 using Transact-SQL. --edit There's a dropdown at the top of the page that brings you to the same topic for Sql Server 2005[^].

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] They hate us for our freedom![^]

      1 Reply Last reply
      0
      • V vanikanc

        Hi, I have a field in the database that has credit card number in it. Bottom line, how can we encrypt this information using SQL SERVER? I need to encrypt it for a brief period of time, like 15 minutes, then the table is truncated. I am using sql server 2005 within C# program/

        E Offline
        E Offline
        eddieangel
        wrote on last edited by
        #3

        I have not seen encrypting one field as a function of a SQL database. Most of the time encryption and decryption is performed at the application level. I can't speak for other programmers, but I use a salted MD5 algorithm in my code that encrypts and decrypts password fields and other sensitive data. http://stackoverflow.com/questions/5061003/how-to-encrypt-the-password-column[^]

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups