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. General Programming
  3. Windows Forms
  4. decryption

decryption

Scheduled Pinned Locked Moved Windows Forms
databasehelp
2 Posts 2 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
    vikas shukla
    wrote on last edited by
    #1

    hi sir i am using following code for encrypt my textbox value and save it in encrypted form to our database. Public function encrp(ByVal enc As String) As String Dim ctr As Byte() = System.Text.ASCIIEncoding.ASCII.GetBytes(enc) Dim c As String = System.Convert.ToBase64String(ctr) Return c End function and following code for decrypt the value for showing in textbox Public function decryp(ByVal c As String) As String Dim b1 As Byte() = System.Convert.FromBase64String(c) Dim f As String = System.Text.ASCIIEncoding.ASCII.GetString(b1) Return f End function but sir i am unable to decrypt my dataset with the help of this function to show the record in datagridview.so please help me for decrypt the dataset. sir reply please.

    D 1 Reply Last reply
    0
    • V vikas shukla

      hi sir i am using following code for encrypt my textbox value and save it in encrypted form to our database. Public function encrp(ByVal enc As String) As String Dim ctr As Byte() = System.Text.ASCIIEncoding.ASCII.GetBytes(enc) Dim c As String = System.Convert.ToBase64String(ctr) Return c End function and following code for decrypt the value for showing in textbox Public function decryp(ByVal c As String) As String Dim b1 As Byte() = System.Convert.FromBase64String(c) Dim f As String = System.Text.ASCIIEncoding.ASCII.GetString(b1) Return f End function but sir i am unable to decrypt my dataset with the help of this function to show the record in datagridview.so please help me for decrypt the dataset. sir reply please.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Don't post the same question again in the same day. You just posted this less than 4 hours ago.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008
      But no longer in 2009...

      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