private static function AESEncryption::pkcs5_pad in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7
1 call to AESEncryption::pkcs5_pad()
- AESEncryption::encrypt_data in includes/
encryption.php - *
File
- includes/
encryption.php, line 33
Class
- AESEncryption
- @package miniOrange @author miniOrange Security Software Pvt. Ltd. @license GNU/GPLv3 @copyright Copyright 2015 miniOrange. All Rights Reserved.
Code
private static function pkcs5_pad($text) {
$size = mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC);
$pad = $size - strlen($text) % $size;
return $text . str_repeat(chr($pad), $pad);
}