Good example of a very basic two-way encryption function. Although the key, "2", could be elaborated on a bit more to make this more flexible and secure.
Also, I think a title more like "Two way Encryption Example" would be more appropriate for this snippet.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.