Revert "Unencrypted secret key"

This reverts commit 3117d41e0eb415bd01b9e280c4e08a5e57eb292f.