Symmetric-key algorithms are a class of algorithms for cryptography that use trivially related , often identical , cryptographic keys for both decryption and encryption . Symmetric-key algorithms are a class of algorithms for cryptography that use trivially related , often identical , cryptographic keys for both decryption and encryption etc.