/** * UnreadableText Class * Compresses an unreadable string using 6 bits only (good for querystrings) * * @author Zeh Fernando * @version 1.0.0 * * 13 Feb 07 (1.0.0) - first version */ /* // short, quick strings import zeh.conversion.UnreadableText; var myString = "This is a test string"; var myUnreadable = Unreadable.encode(myString); *then* import zeh.conversion.UnreadableText; var myString = Unreadable.decode(myUnreadable); */ class zeh.conversion.UnreadableText { private static var CHAR_TABLE:String = "ABCDEFGHIJKLMNOPWRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-"; /** * No constructor. */ public function UnreadableText() { trace ("This is an static Class and should not be instantiated."); } /** * Quick compression function, to do everything in one shot * * @param p_str String String to be encoded * @return Object Encoded string */ public static function encode (p_str:String): String { return compressedData; } }