|
-
Apr 19th, 2012, 02:20 AM
#1
Thread Starter
Fanatic Member
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?
-
Apr 19th, 2012, 03:59 AM
#2
Re: AES-256-CBC encryption?
-
Apr 20th, 2012, 01:52 AM
#3
Thread Starter
Fanatic Member
Re: AES-256-CBC encryption?
-
Apr 20th, 2012, 03:05 AM
#4
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.
-
Apr 20th, 2012, 04:58 AM
#5
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|