import math


def verify_len(content,max_len = 245):
	"""
	This function received the strings that will be send, and calculated how much packets of lenght = @max_len it's necessary for send the message. 
	
	@param content:(str) represent the content it's necessary to send.
	@param max_len :(int) it's the max size of packet, that actual it's limit for signing the message with RSA algorithm.
	
	@return : the number of packages necessary for send all the content or 0
	"""
	if(type(content) == bytes):
		size_string = len(content) # content+ ' \r\n '
		total_temp  = size_string/max_len
		total = math.ceil(total_temp)
		return total
	else:
		return 0