Generation of secret information including derivation or calculation of cryptographic keys or passwords