Added some small encryption completly internal
Added matrix encoding to the encode function, need inverse function for decoder