Add C++ wrapper & codec encryption implementation