Current location: Hot Scripts Forums » General Web Coding » Flash & ActionScript » Flash Logins, Secure?


Flash Logins, Secure?

Reply
  #1 (permalink)  
Old 05-03-06, 09:33 PM
Defyer Defyer is offline
Newbie Coder
 
Join Date: Apr 2005
Location: Illinois
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Flash Logins, Secure?

Are flash based logins a secure way to protect information or is it easily bypassed and such?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 05-04-06, 06:39 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
depends on how you store the users login.
- if your storing the login info in your flash application , i guess it's safe, unless your storing all user info in your swf, cause they are easily decompiled.
- if you're sending your login info to a server-sided script that checks the login, and stores all user inof, it is certainly safe. you can use sendandload stuff for this, of you could setup a socket

greetz,
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 05-04-06, 09:09 AM
Defyer Defyer is offline
Newbie Coder
 
Join Date: Apr 2005
Location: Illinois
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
I only know how to store them in the .swf file, how would I go about using a server side script, does it take awhile to code or is it just type the user name then type the password?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 05-04-06, 03:02 PM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
basicly you setup a username-input field, and password field.
and then you write for example a php file with the following code:
PHP Code:

<?php

$username 
$_POST["username"];
$password $_POST["password"];
if(!empty(
$username) && !empty($password)):
  
//if you wonna check in a database system:
  
$res mysql_query("SELECT FROM user_table WHERE username='".$username."' AND password='".$password."'");
  if(
mysql_num_rows($res) == 1):
    echo 
"login=true";
  else:
    echo 
"login=invalid_info";
  endif;

else:
  echo 
"login=no_input";
endif;
?>
in your flash you'll have to place this code:
Code:
dt = new LoadVars();
dt.username = username_textfield.text;
dt.password = password_textfield.text;
dt.sendAndLoad("http://www.yourwebsite.com/login.php", dt);
dt.onLoad = function(){
  if(this.login == "true"){
    //do login stuff
  else if(this.login == "no_input"){
    trace("you didn't specify any username and/or password");
  else if(this.login == "invalid_info"){
    trace("the inserted username and/or password were incorrect");
  }
};
this should work, and i hope it helps a little. if you need more info on login systems in php, search in for posts in the php-mysql area

Greetz,
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 06-03-06, 10:25 AM
Pissedoff Pissedoff is offline
Newbie Coder
 
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
I prefer Perl to Php, but when you decompile a swf file, does it come back with all the actionscript in readable form?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 06-04-06, 09:51 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
depends on what compiler you use, i guess.

i have 1 that displays the AS that is written in the frames itself, but not the external classes

Greetz,
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CamDate - Adult, Dating & Community Orientated Flash Audio / Video Chat Software CamDate.Biz General Advertisements 1 09-17-07 10:21 AM
Outsourcing web design to Bulgaria - Marin Todorov gal_flower Job Offers & Assistance 4 02-14-06 09:05 PM
Secure Managed Dedicated Server @ $149/month - NO SETUP FEES! Newbie2000 General Advertisements 1 12-16-04 03:27 PM
flash mx to PHP to flash mx olm75 PHP 1 12-09-04 04:44 AM
Php with flash or without tables ? EraseR PHP 0 06-26-04 08:36 AM


All times are GMT -5. The time now is 01:51 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.