Add encrypt
Remove unnecessary dead_code attributes
Fix indentation