Implementation of RFC 2289 compatible 6-word encoding