/    Sign up×
Community /Pin to ProfileBookmark

PHP AES RINJDAEL encryption to match C#

just want to know if C# AES CRIJNDAEL encryption / decryption mode matching with PHP mcrypt_rijndael 256 bits?

i had a program which encrypt using cipher RIJNDAEL 256 bits, CBC.

after that i will base64 encode the ciphertext.

At PHP side, i will then base64_decode the cipher text, and decrypt it, but the results shown as junk.

anyone have any idea how to match C AES with PHP AES?

we are using the same mode CBC, same KEY and RIJNDAEL 256, the only different is, in PHP there is something call IV, but the CRIJNDAEL, it mention something named KEYCHAIN, so in order to encrypt , i will have to do e.g.

aes.MakeKey(KEY, KEYCHAIN)

so i assume the KEYCHAIN is actually refer to IV.

all helps are appreciated!

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @lting spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...