bugfixes for encrypt

a stub for decrypt