Jamroom Logo Jamroom 5 Core
is now Open Source!
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
Brian, 11/13/09 16: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 5
Jamroom 5 Modules
Jamroom Marketplace
Support Forum
Documentation
Support Center
Contact Support
Community Forum
Member Sites
Developers
About Us
Contact Us
Privacy Policy
©2003 - 2024 The Jamroom Network