add encript functions