best way to save and encrypt data?

i have a program that currently saves and encrypts data in a database.
but is there other ways to save data and still encrypt it?
You could save it to file. Make sure to open the file in binary mode both when writing and reading to/from the file.
Or a txt file and save as text if you are encrypting a txt document
Topic archived. No new replies allowed.