Ngā hua rapu - "encoding/decoding algorithm"