Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | PHP | global.php | str_encrypt SEARCH    

  Functions
comma
copy
count
disk_file_list
disk_file_load
disk_file_save
disk_folder_copy
disk_folder_list
disk_folder_remove
explode
get_baseURL
get_currentPath
implode
mioDb_connect
mioDb_query
mioxml_getElement
mioxml_getElementArray
mioxml_getOuter
settingsSetSimpleValue
settingsStringToArray
settingsToArray
strlen
strpos
strrpos
strtolower
strtotime
strtoupper
str_decrypt
str_encrypt
str_posEx
str_replace
str_split
substr

  Libraries
miodb_lib.php
mio_wlib.php
stats_read.php
stats_write.php

Function
str_encrypt

Language: PHP
Product: MioFactory


Syntax

str_encrypt(String, urlFriendly)


Parameters

STRINGStringString to encrypt.
BOOLurlFriendlyOptional.
Default is false.
Set to true if the string contains only alphanumeric and numeric characters.


Return value

No value is returned.


Description

Encrypts a script using a basic algorithm.
This function is useful to save a password or any confidential information in the application memory. For more info: mio_data_save.

If the optional parameter urlFriendly is set to true, characters other than numeric and alphanumeric are preserved in the returned string. The string can be sent via an URL as no special character is used.

It is possible to decrypt the string from JavaScript with str_decrypt.

See also: str_decrypt