add unencrypt function
merged