added a +1 so that the encrypted string is zero terminated :)
crypto functions return null now if the length of the input strings is not ok