Ciphering or deciphering apparatus for cryptographic or other purposes involving the need for secrecy