model refactoring in H2HDummyEncryption adapted