add encrypt code