Results 1 to 6 of 6

Thread: help encrypt/decrypt C#.NET and VB6

  1. #1

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    help encrypt/decrypt C#.NET and VB6

    hi guyz!!! I have a problem here...I have 2 windows application 1 was developed using VB6(not VB.net) and the other using c#.net and they both capable of querying and sending data from/to the database server(MSSQL 2005) my problem is how can I encrypt the data from one windows application(VB6) where in when i try to decrypt it to other windows application(c#.net) it would still give me the original text. Btw, i want the encryption/decryption to happen in the application not in the database server since i dont want to send it to the server in a clear text. any suggestion? thanks in advance!!!

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: help encrypt/decrypt C#.NET and VB6

    I know you'll have to use a "single key algorithm" to encrypt/decrypt your text (e.g DES)
    use the same key in both Applications and there must be no problems
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Re: help encrypt/decrypt C#.NET and VB6

    Thanks! but i want the encryption/decryption to happen in my application before i send/received it from/to MSSQL server...any suggestions...

  4. #4

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Re: help encrypt/decrypt C#.NET and VB6

    hello...any inputs?please help me..i'm desperately looking for a encryption and decryption solution that works perfectly with C#.net and VB6 take note please VB6 not VB.net...any inputs will be greatly appreciated.

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: help encrypt/decrypt C#.NET and VB6

    Write a COM library in VB6 and reference it in C#, otherwise write it in C# and read up on how to use .NET libraries in COM applications.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Re: help encrypt/decrypt C#.NET and VB6

    Thanks but...can you give me a link to a tutorial on how to creat a com in VB6? thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width