-
Senior Member
Encrypting the contents of of text box?
This might be crazy but here is what I would like to do.
have a text box that I can type plaintext into, click a button which then calls for Actionscript to apply an encryption algorithm to each letter in the textbox and then return the ciphertext to a second textbox....then be able to decrypt the ciphertext back to plaintext.
The important part would be having access to each letter individually in order to apply the encryption.
The encryption would be written in the AS editor.
Just for fun, nothing important.
Anyone got any ideas?
-
Senior Member
There has already been work done on this. Plenty of stuff out there. If I find anything useful I'll post it here.
-
There's the string functions charAt(index) and charCodeAt(index) you could use to access each character.
-
Senior Member
Originally Posted by w.brants
There's the string functions charAt(index) and charCodeAt(index) you could use to access each character.
Thanks Wilbert!
Upon investigation of the AS3 Language reference I have found that fromCharCode() is another useful function in this project. Thre are others as well.
-
KoolMoves Moderator
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|