OpenSSL uses industry-standard encryption (like AES-256-CBC). The command below will encrypt your file, request a password, and create a new encrypted file:
To extract the file, use:
As of 2025, there is no standard "encrypted tar" format. However, new tools like age (a modern encryption tool) are gaining popularity: password protect tar.gz file