CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 12 of 12
  1. #1
    Join Date
    Mar 2013
    Posts
    22

    How to get this code work for Vb6 (AES Encrypting from Microsoft Web-site)

    Hi guys, this is a AES Encryption from Microsoft.

    I need to get this code (Click here) working for Vb6, but I think Microsoft wrote it from Vb.Net, then I need it in Vb 6.

  2. #2
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: How to get this code work for Vb6 (AES Encrypting from Microsoft Web-site)

    Yes that is .Net code using a .Net library. You could create a dll in VB.Net and then use that from VB6 but you would be better off just using VB.Net
    Always use [code][/code] tags when posting code.

  3. #3
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: How to get this code work for Vb6 (AES Encrypting from Microsoft Web-site)

    Users would need to d/l. VB6 won't be able to do that.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  4. #4
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: How to get this code work for Vb6 (AES Encrypting from Microsoft Web-site)

    Quote Originally Posted by dglienna View Post
    Users would need to d/l. VB6 won't be able to do that.
    Users would need to d/l what?
    Always use [code][/code] tags when posting code.

  5. #5
    Join Date
    Mar 2013
    Posts
    22

    Re: How to get this code work for Vb6 (AES Encrypting from Microsoft Web-site)

    You could create a dll in VB.Net and then use that from VB6 but you would be better off just using VB.Net
    Yes, I should have done it if I knew Vb.Net, but I am not familiar with Vb.Net.

    Why do you advise me to use it in VB.Net !!! Is there any particular reason like performance or ... for using Vb.Net instead of Vb6???

    How to create a DLL in Vb.Net for using it from Vb6???




    Users would need to d/l. VB6 won't be able to do that.
    What do you mean ???

    Vb6 won't be able to do; What ???


    Please guys, I need you advices !!!

  6. #6
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: How to get this code work for Vb6 (AES Encrypting from Microsoft Web-site)

    I advised you to use .Net because it handles this directly, you even found the sample code to do it. VB6 does not.
    As for making the DLL can't say for sure as I have not built any Dlls in .Net for use with VB6. A search would likely turn up some results though.

    There is a lot of things that you can do in VB.Net that are not directly supported in VB6 and some things that are not possible in VB6
    Always use [code][/code] tags when posting code.

  7. #7
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: How to get this code work for Vb6 (AES Encrypting from Microsoft Web-site)

    VB6 apps usually don't have permission to install the right Net Framework on any given OS. While VB.Net can
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  8. #8
    Join Date
    Mar 2013
    Posts
    22

    Re: How to get this code work for Vb6 (AES Encrypting from Microsoft Web-site)

    Thanks, I wanted to replied since but I was writing my CCNA Exam.

    I also did search and I found some web-sites that propose to do that from Vb6 directly but I wanted this one from Microsoft Web-site as it is original from the creator.

    Link 1 : (click here)

    Link 2.1 : (Click here)

    Link 2.2 : (Click here)

    Link 3 : (Click here)
    I think this one is the best !


    Advice please : Will it be benefit for me to learn Vb.Net??? and How??? Why not C++???


    Please can you tell me the difference between "AES Encrypt Byte Array" and "AES String Encryption" Byte/String that I read here and there

  9. #9
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: How to get this code work for Vb6 (AES Encrypting from Microsoft Web-site)

    Really think something from 13 years ago to be better than something new? Open the ZIP file, and look at the date...
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  10. #10
    Join Date
    Mar 2013
    Posts
    22

    Re: How to get this code work for Vb6 (AES Encrypting from Microsoft Web-site)

    Yeah, you're right !!!

  11. #11
    Join Date
    Jun 2014
    Posts
    5

    Re: How to get this code work for Vb6 (AES Encrypting from Microsoft Web-site)

    Quote Originally Posted by dglienna View Post
    Really think something from 13 years ago to be better than something new? Open the ZIP file, and look at the date...
    hmm, isn't AES not a standard? If so, why it makes a diference how old the code is?
    1 plus 1 equals 2, doesn't matter if today or 1000 years ago

  12. #12
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: How to get this code work for Vb6 (AES Encrypting from Microsoft Web-site)

    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

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

Featured