Base class for secure util. Java/ios implementations to come.