One possible solution is to use a cross-platform encryption tool that can encrypt and decrypt your data on any platform. There are many such tools available, both free and paid, that offer various features and options. For example, VeraCrypt is an open-source tool that can encrypt disks, partitions, or files on Windows, Linux, and Mac OS. It supports multiple encryption algorithms, such as AES (Advanced Encryption Standard) or Serpent, and can create hidden volumes or containers for extra security. Another example is Signal, a free app that can encrypt your messages and calls on Android, iOS, Windows, Linux, and Mac OS. It uses the Signal Protocol, which is an end-to-end encryption protocol that ensures only the sender and receiver can access the data.
Another possible solution is to use a standard encryption format or protocol that is widely supported by different platforms and applications. For example, ZIP is a common file format that can compress and encrypt files on any platform. It uses the PKZIP encryption method, which is based on the symmetric-key algorithm RC4 (Rivest Cipher 4). Another example is SSL (Secure Sockets Layer), which is a protocol that can encrypt the data between a web browser and a web server on any platform. It uses public-key cryptography, which involves a pair of keys: a public key that is shared with anyone, and a private key that is kept secret by the owner.