Building modified modular cryptographic systems