Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Encrypted String - Newbie question
Message
De
06/11/2007 09:20:13
 
 
À
06/11/2007 08:44:55
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01266932
Message ID:
01266944
Vues:
14
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
  • Précédent
    Suivant
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform