Added autogeneration of hexseed and encoding