Sorry, but generally we can’t give source code support. Perhaps someone else in the community would like to help?
A quick hint though – check the methods in class AxCryptFile, I think they will do more of what you’re looking for. As for the type registry, check out Program.cs – you’ll find all the required type registrations there.
We will be providing a SDK with sample code in the future, but we’re not there quite yet.