Why do you need a secret key?
AES is a symmetric cipher, so the same secret key is used for both encryption and decryption. Key length defines the protection level: 128-bit covers most everyday use cases, 192-bit is chosen for higher assurance environments, and 256-bit is the strongest common option used in finance and other security-sensitive systems.
The secret key must remain confidential. Anyone who gets the key can decrypt the data, so avoid sharing it over unsafe channels and prefer randomly generated keys instead of manual input.