fixed encrypt code
add another test code