src/snapchat_agent.php
public function pad($data, $blocksize = 16) {
		$pad = $blocksize - (strlen($data) % $blocksize);
		return $data . str_repeat(chr($pad), $pad);
	}
public function pad($data, $blocksize = 16) {
		$pad = $blocksize - (strlen($data) % $blocksize);
		return $data . str_repeat(chr($pad), $pad);
	}
public function pad ( $ data , $ blocksize = 16 ) { $ pad = $ blocksize - ( strlen ( $ data ) % $ blocksize ) ; return $ data . str_repeat ( chr ( $ pad ) , $ pad ) ; }
Pads data using PKCS5.

@param data $data
The data to be padded.
@param int $blocksize
The block size to pad to. Defaults to 16.

@return data
The padded data.
Pads data using PKCS5 .