# Password security and private vars?

**URL:** <https://forum.kirupa.com/t/password-security-and-private-vars/258712>\
**Category:** Uncategorized\
**Created:** [April 27, 2008, 7:37am UTC](https://forum.kirupa.com/t/password-security-and-private-vars/258712 "2008-04-27T07:37:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![StigC](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@StigC](https://forum.kirupa.com/u/StigC)\
**Post date:** [April 27, 2008, 7:37am UTC](https://forum.kirupa.com/t/password-security-and-private-vars/258712/1 "2008-04-27T07:37:32Z")

</div>

Hey Everyone.

In my attempt to learn AS3 I’ve bought two books. While reading through them I’ve learned about the concept of private constants in classes, and my question is this:

How secure are private constants in an external class?  
Wouldn’t it be fairly complicated to lift user/pass from an external .as file?

Or would it be just plain ignorant to make a login feature where the right user/pass is stored as private constants in an external class?

Note: this is for a fairly low security risk site, but nonetheless.

Thanks in advance.

Stig
