adding the encryption function

Signed-off-by: x1b2j <gx1b2j@gmail.com>