'String length in encryption

What would determine the length of a cypher string generated in any encryption? for example SHAKE-128 hashing fives an output cypher string of 32 characters in length. AES-256 gives an output of 64 character length in cypher for a secret key of 32 characters in length. Can anyone tell me what factor decides the length of a cypher in any encryption, please?
Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source