Sempat panik, ternyata :o

Dapat kerjaan decrypt hasil API pakai PHP, sempat panik ini apaan padding PKCS#7

Ternyata result bisa di decrypt dlm 1 baris

$decrypt = openssl_decrypt($string, ‘aes-256-ecb’, md5($appKey), OPENSSL_ZERO_PADDING, NULL);

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.