Akshayy,
Not to be rude, but a Google search limited to codeproject.com revealed
numerous articles[
^] that show how to do it and have explanations for Rinjdael.
I recommend watching a
video[
^] to better understand how it works.
I'll let you search for the Twofish one yourself.
Before you focus on the best encryption, you probably need to better understand what you are encrypting and why it is important or not. If you're writing code, I recommend
reading about password security[
^] before you worry about encryption.
Hogan