update

add encry and compress interface.