implement permutation of alphabet and fix huge no-no
use LUT for converting back from alpha -> raw