TIV starting from 2000 supports cipher.* functions which you can use to store the passwords using AES algorithms. Take a look at the latest programmers guide on the examples of how to do it.
If not, you need to use some external utility where you will pass the string value to it and it will output the encrypted version.
Unless you try to do something beyond what you have already mastered, you will never grow!