Results 1 to 5 of 5

Thread: AES-256-CBC encryption?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    AES-256-CBC encryption?

    i have in php two functions, one to encrypt and one to decrypt.

    PHP Code:
    function Encrypt($message) {
    $Method "AES-256-CBC";
    $passPhrase "key";
    $iVector 1234567890123456;
    $encryptedMessage openssl_encrypt($message$Method$passPhrase$iVector);
    return 
    $encryptedMessage;
    }
    function 
    Decrypt($message) {
    $Method "AES-256-CBC";
    $passPhrase "key";
    $iVector 1234567890123456;
    $decryptedMessage openssl_decrypt($message$Method$passPhrase$iVector);
    return 
    $decryptedMessage;

    what i want to do, is encrypt a message, using the same method in vb.net as i do in php, how would i go about doing this?

  2. #2
    PowerPoster Radjesh Klauke's Avatar
    Join Date
    Dec 2005
    Location
    Sexbierum (Netherlands)
    Posts
    2,244


    If you found my post helpful, please rate it.

    Codebank Submission: FireFox Browser (Gecko) in VB.NET, Load files, (sub)folders treeview with Windows icons

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Re: AES-256-CBC encryption?

    could you elaborate?

  4. #4
    PowerPoster Radjesh Klauke's Avatar
    Join Date
    Dec 2005
    Location
    Sexbierum (Netherlands)
    Posts
    2,244

    Re: AES-256-CBC encryption?

    What? With the code you can find in that message you can encrypt your message in VB.NET.
    Last edited by Radjesh Klauke; Apr 20th, 2012 at 03:14 AM.


    If you found my post helpful, please rate it.

    Codebank Submission: FireFox Browser (Gecko) in VB.NET, Load files, (sub)folders treeview with Windows icons

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Re: AES-256-CBC encryption?

    yes but i don't get it... i set the same settings or at least i think i did, yet i don't get the same message in vb.net as i do in php..

    i guess i'll have to do some research, and post back later.

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