common crypter class and tweak