Sunday, February 10, 2013

Is it possible to secure swf files?


1- Obfuscate your ActionScript using an advanced obfuscator such as secureSWF.
2- Domain lock your SWF files.
3- Create a dummy loader, rename the original SWF files and change their extension, then load the original SWF files using the dummy loader.
4- Make sure to prevent hot linking. (this will depend on your web server)
5- Encrypt sensitive strings in your ActionScript; either manually in your code, or you can also use secureSWF for that.

Friday, February 8, 2013

Crystal Report Dynamically Binding


   protected void cmdPreview_Click(object sender, EventArgs e)
        {
            try {
                if (txtfrmDate.Text == "") { WebMsgBox.Show("From date must requir...."); return; }
                if (txtToDate.Text == "") { WebMsgBox.Show("to date must requir ...."); return; }

                UserInfo.cRptTag = "RoasterdetailRpt";
                UserInfo.crptDepartmentID = DDLDept.SelectedValue;
                UserInfo.crptDateFrom = txtfrmDate.Text.Trim().Substring(6, 4) + '-' + txtfrmDate.Text.Trim().Substring(3, 2) + '-' + txtfrmDate.Text.Trim().Substring(0, 2);
                UserInfo.crptDateTo = txtToDate.Text.Trim().Substring(6,4)+'-'+txtToDate.Text.Trim().Substring(3,2)+'-'+txtToDate.Text.Trim().Substring(0,2) ;
                //Response.Redirect("/frmViewer.aspx");
                RptViewer.RefreshReport();
                ReportDocument rd = new ReportDocument();
                string strRptPath = System.Web.HttpContext.Current.Server.MapPath("~/Reports/CrossTabbedAttendanceFinal4.rpt");

                //qry = "  Select Code,Name,Description,LeaveMode,UnitType,Quantity " +
                //        "  from tblLeaveType  " +
                //        "  Where (companyID=" + UserInfo.cCompanyCode + ")";


                string qry = "exec Generate_RosterDepartmentWise '" + UserInfo.crptDepartmentID + "' ,'" + UserInfo.crptDateFrom + "' ,'" + UserInfo.crptDateTo + "'";

                tbl = db.GetTableToSql(qry, "x");
                rd.Load(strRptPath);
                rd.SetDataSource(tbl);

                RptViewer.ReportSource = rd;
                Response.Buffer = false;
                Response.ClearContent();
                Response.ClearHeaders();
                RptViewer.RefreshReport();


            }
            catch (Exception x) { WebMsgBox.Show(x.Message); }
        }

Friday, January 25, 2013

Reducing Your Website's Bandwidth Usage


Reducing Your Website's Bandwidth Usage




http://www.codinghorror.com/blog/2007/03/reducing-your-websites-bandwidth-usage.html

Sunday, January 6, 2013

Guide / How To / Tutorial and Article list

http://forum.videohelp.com/threads/169292-How-to-stream-live-TV-using-Windows-Media-Encoder

Saturday, January 5, 2013

[AS3] Hiding Assets And Code By Embedding SWF Within Another SWF

http://www.ghostwire.com/blog/archives/as3-applying-rot128-encryption-on-bytearray/


C# - Using Rijindael Algorithm and Recursion to Implement a File Encrypting\Archiving Tool

http://www.codeproject.com/Articles/494900/Csharp-Using-Rijindael-Algorithm-and-Recursion-to

Best Idea

http://designgard.com/topic/422542/how-do-i-protect-my-flv-files-or-how-to-encrypt-and-decrypt-flv-files-using-air/

Wednesday, January 2, 2013

idea regarding video encryption

http://www.getacoder.com/projects/video_encryption_software_player_146949.html

Using AES to encrypt a video

http://forums.whirlpool.net.au/archive/1479211

Playing encrypted video

http://stackoverflow.com/questions/7316729/playing-encrypted-video

Generating Unique Key(Finger Print) for a Computer for Licensing Purpose

http://sowkot.blogspot.com/2008/08/generating-unique-keyfinger-print-for.html

How To Get Hardware Information (CPU ID, MainBoard Info, Hard Disk Serial, System Information , ...)

http://www.codeproject.com/Articles/17973/How-To-Get-Hardware-Information-CPU-ID-MainBoard-I

Is there some uniqueID of each computer, to differentiate one from other?

http://stackoverflow.com/questions/6328455/is-there-some-uniqueid-of-each-computer-to-differentiate-one-from-other


ManagementObject dsk = new ManagementObject(@"win32_logicaldisk.deviceid=""" + drive + @":""");
dsk.Get();
string volumeSerial = dsk["VolumeSerialNumber"].ToString();