Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6597891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:16:03+00:00 2026-05-25T18:16:03+00:00

I read over a great tutorial on how to encrypt the data using a

  • 0

I read over a great tutorial on how to encrypt the data using a symmetrical key in one column.
Click here to view it.

This has helped me set up a column for encryption, which is what I need. My problem is that I will constantly be updating rows in my database – so copying over one whole original column to the encrypted columm like the tutorial shows doesn’t work. Is there a way that I can insert a value that is given to me (using C#/asp) and direclty encrypt it as I insert it into the database, rather than having to place it in one column and copying it over, and then dropping the other column?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:16:03+00:00Added an answer on May 25, 2026 at 6:16 pm

    Just call EncryptByKey on your data to encrypt You don’t need another column. In this case it has to be included in your SQL which should be a parameterized query or a stored procedure.

    Insert into Whatever
    YourEncryptedData
    Values ( EncryptByKey(…))
    You may have top open your key first depending on your implementation.

    http://msdn.microsoft.com/en-us/library/ms174361.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've read over this question and I think that is a great start, but
I have quickly read over the Microsoft Lambda Expression documentation. This kind of example
I have read over this which sort of gives an explanation of when you'd
My program is using HTTP to read gzipped files over the network. I need
I discovered a nice abstraction whereby I can read in data from UDP using
Alright...I've given the site a fair search and have read over many posts about
I read all over the Internet (various sites and blogs) about version control. How
I read all over the place about how Spring encourages you to use interfaces
I've read Visual VM remotely over ssh but I think I've not fully understood
I need to read and write octet streams to send over various networks to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.