Encrypt/decrypt text in flash

hi guys ,

i have text box on stage. the user enters some text in it and on click of a btn it calls a function that returns me the encrypted form of the text as string.and displays it in another text box…also another function that decrypts the encrypted text

can somebody help me with this…real urgent