Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Encrypted String - Newbie question
Message
From
06/11/2007 09:20:13
 
 
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01266932
Message ID:
01266944
Views:
13
Glenn,

I think it's simply a string .NET data type and a VARCHAR() SQL data type. That's the first thing I would try anyway. <g>

~~Bonnie



>I am trying to store an DES3 encrypted string from a VB.Net program into a field of a SQL 2005 table using a stored procedure.
>The final Code which returns the encrypted string is:
>CipheredValue = Convert.ToBase64String(desdencrypt.TransformFinalBlock(buff, 0, buff.Length))
>Return CipheredValue
>
>
>My questions are:
>
>
  • What data type is required in SQL 2005 to store this data

  • >
  • What datatype must I use as the parameter in the SP

  • >
  • What data type must I use in the
    >Command.Parameters.AddWithValue()

  • >
  • What datatype should I use in the VB.Net program
    >
    >
    >I sure could use some sage advice.
    >
    >Thanks
    >
    >Glenn
    Bonnie Berent DeWitt
    NET/C# MVP since 2003

    http://geek-goddess-bonnie.blogspot.com
  • Previous
    Next
    Reply
    Map
    View

    Click here to load this message in the networking platform