Jamroom Logo
Newsletter
Member Spotlight
122060
RockAffairs
"The ability for Jamroom to be customized is what makes RockAffairs what it is. Getting the content you need on a page is simple, even for beginners. The admin interface is excellent, and you'll never need to touch the PHP code; Jamroom's inbuilt custom functions combined with Smarty give you everything you'll ever need. And if you do get stuck, customer support and a fantastic community always try to help. Visit RockAffairs, see Jamroom in action, then get it yourself. Rockaffairs *hearts* Jamroom!"
Follow Jamroom on Twitter!


decString Function Index fileString
encString

The encString function is used to encrypt a string - it's not hard encryption (so don't rely on it to store sensitive information), but should be hard to decrypt without knowing the key.

  • return: Returns encoded string
string encString (string $data, [string $ekey = false])
  • string $data: Text to encode
  • string $ekey: Key used to encrypt. By default Jamroom will use the MySQL Username as the encryption key.
 Comments
bigguy, 11/13/09 08:26:42:

NOTE: If you do not provide the $ekey (encryption key) variable, Jamroom will use the MySQL username as the encryption key. This means that if the MySQL information is changed, strings that were encrypted before the change will no longer be able to be converted back, so make sure that if you are using this function for long term storage of an encrypted value, that you provide the (known) key - otherwise, once the MySQL info is changed, any strings encrypted before the change will no longer be accessible.

- Brian
You must be logged in to post a comment
Solutions Products Support Community Company
Social Media Platform
Social Networking Software
Musician Website Manager
Community Builder
Jamroom Core
Jamroom Addons
Jamroom Modules
Jamroom Marketplace
Support Forum
Documentation
Support Center
Contact Support
Community Forum
Member Sites
Developers
About Us
Contact Us
Privacy Policy
©2003 - 2012 Talldude Networks, LLC.