There are plenty of libraries out there to make it easier, for sure. There are different types of encryption though depending on what you're trying to achieve.
AES for example has several "modes" of encryption which are used for different things. Some are better suited to stream based encryption, like streaming video, voip, chat sessions etc, while others are more suited to static, binary encryption, like in a database.
How is the plain text going to be stored? If it's in a file, it can likely be encrypted the same way a trojan would.