dogtag
Jun 7 2007, 12:40 PM
| | Here is my 3rd Code: By this code you can encrypt your text:
CODE <?php $a = md5("hello"); $b = base64_encode("hello"); $c = base64_decode("hello");
print "md5 = ".$a." base64_encode = ".$b." base64_decode = ".$c; ?>
EASY! |
Reply
Similar Topics
Keywords : encrypt, functions
- Functions
??? (7)
[php] Clean Code Functions
Clean up your html output from php scripts (5) There is another Topic about writing 'clean' HTML code posted elsewhere on the Forum.
I'll edit this Topic and add the link so you can review it on your own, and there is no need for
me to comment on it in this thread, but the purpose of this Topic is to introduce a pair of
functions which can be used for making sure that the HTML output from my scripts is readable when a
view-source is reviewed. Two handy functions are included here. They work together quite nicely,
and I will start this Tutorial with a short summary of the reasons for their 'being....
Functions
(0) First put this code into your script: HTML <script> function FUNCTION NAME() {
***** } /script > Then replace ***** with one of these: alert("TEXT")
window.location="URL" document.write="TEXT" any popup from the "popup" page any function name
Then to start the function you can choose one of these: HTML input type =" button " value="
TEXT " onClick=" FUNCTION NAME() "> body onload =" FUNCTION NAME() "> body
onunload =" FUNCTION NAME() "> body onmousemove =" FUNCTION NAME() "> body onclick
="....
Ajax Functions On Free Host
Is free hosting supported an ajax scripts? (6) Is it possible to add an ajax scripts to a free webhosting? If possible i would like to create a
website using a pure ajax scripts... /smile.gif" style="vertical-align:middle" emoid=":)"
border="0" alt="smile.gif" />.. An additional to this question is.. Is there a way ajax scripts will
be suported by back button on browsers? (firefox, ie etc. supported)?....
Php Email Validation
A PHP data validation class with many functions (1) I've been reading through my old php book (PHP 4.1) and came across this data validation class.
It can check a number of things ranging from telephone numbers , credit card number formats, email
address and some others. I checked out some of the methods although I didnt expect it to work 100%
because I've found source code errors thoughout the book and CD. I tested out a few of the
methods to check and some of them did return expected results but some didnt either so the data
validation class was not perfect and it didnt really bother me. The cool thing I found....
Php Functions To Send Mail
(4) Which other methods to send mail from a form? I just know mail function, like: mail(string to,
string subject, string message) Has anyother?....
Arrays Outside A Function
Need to have arrays available to all functions. (3) I've got a bunch of arrays that i want to use for more then 1 function. when i declear the
arrays outside a function i cant use it in a function. This code was originally written in
javascript by another person but since I plan to use it and extend it with php I had to change it
from javascript to php code. In the javascript code the arrays were decleared outside the functions
with 'var arrayname' I read somewhere that declearing javascript variables with
'var' gives it global access. Any ideas on how I can go about declearing 1 set of these
arrays t....
How Do Cameras Capture Pictures?
Functions of the camera obscura and CMOS and CCD technologies (12) In the olden days, cameras were made in the stylish fashion of "camera obscura, " where basically a
hole was made in the wall of a box, and on the other side there was a film piece there to "capture"
the picture. Of course, we've gotten a lot more advanced than that since then. The basic
workings of a film camera rely on that basic mentioned concept, but now we use fancy things like
mirrors, photographic film/plates, and other doodads to decrease the capture time, improve image
quality, and flip the image vertically (since images are always captured upside-down). ....
[php](simple) Using Functions To Combine Values In A Form
Really simple example on how to combine values with function (2) I just learned this simple method on how to use functions to combine two values from a form. First
we create ourselves a simple POST form CODE <form method="POST"> Name:
<input type="text" name="nickname"> Location: <input
type="text" name="location"> <input type="submit"
value="Input"> </form> Now we add this php to that same file CODE
<?php $nick = $_POST['nickname']; $location =
$_POST['location' ....
Ucfirst() And Ucword() Functions In Game Maker
Just like the PHP functions! (2) Hello all! /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif"
/> I have just finished two scripts in GML(Game Maker Language) that I find to be useful: ucfirst()
and ucwords(). If you have been around PHP for anytime, you probably have run across these
functions. Simply put, ucfirst() takes the first letter of a sentence and uppercases it. While
upwords() takes the first letter of every word in a sentence and uppercases it. Nice time-saver for
stories. /wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />....
[tut/mod]functions Learning The Basics
(0) Learning Functions v1: W3schools Definition: QUOTE A function contains some code that
will be executed only by an event or by a call to that function. You may call a function from
anywhere within the page (or even from other pages if the function is embedded in an external .js
file). Functions are defined at the beginning of a page, in the section. So how the heck do
you use a function? well you simple start off with the function methid CODE <script>
function functionname(var1,var2,...,varX) { some code } </script> ....
Disabled Functions List?
How do I enable these? (5) I am looking into setting up an e-Commerce site and I am currently setting up X-Cart. When
installing this I get a message telling me that the following functions are disabled: QUOTE
Disabled functions list ... 'system, dl,proc_open, proc_nice, proc_terminate, proc_get_status,
proc_close, pfsockopen, leak, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid,
escapeshellcmd' I looked around my cPanel and I could not find anything to re-enable these.
If someone could please point me in the right direction on enabling these please let me kn....
Javascript Help
Can't do simple variable functions ¬_¬ (1) Edit: Haha, nevermind....I've had it fixed now /biggrin.gif" style="vertical-align:middle"
emoid=":D" border="0" alt="biggrin.gif" /> an admin/mod can delete this if s/he feels like it
/tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> Slide show
So i'm trying to make my own slideshow, see above. I have the pictures showing depending what
"num" equals...Well, the code's here: CODE <script TYPE="text/javascript">
<!-- var num = 1; var pic = "pic.gif"; switch (num) { default&....
Gd Functions
Questions (2) Hi all I want begin a new project , my new project is Photo blog ( weblog and image album ) in one
script for example you can post many image in one post at once case . so its very good and very easy
but we have some problems . if you can plz help me to fix this problems for example : we need
change image size for page speed ( we dont want show 16 image in one page ) * we need GD functions
to change image size to smaller and then show smaller image at page if you know source or tutorial
about change image size plz post here . thankx we know we can change image size (w....
Mirc Identifiers In Vb6
Few token identifiers which work the same as mIRC functions do (0) If u have ever scripted in mIRC you would have surely come accross the token identifiers like
$addtok $gettok, etc. Here is a little snippet u can add to your VB6 script to use these
functions easily with the same format as the mirc commands. ie. $gettok(string,N,C) very easy
to use hope it comes in use to someone, i use it a lot in my scripts /smile.gif"
style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Public Function AddTok(Text
As String, Token, AscChar As Integer) As String Dim Tokens() As String, NumTokens As Integer, X As
In....
Wappy's Php Snippets
I will place here usefull php snippets and functions that i learn/use (13) Here is a function you can use to generate a simple random password for whatever use ;-) CODE
<? function rand_pass($numchar){ $string = str_shuffle
("abcdefghijklmnopqrstuvwxyz1234567890"); $password = substr ($string,
1, $numchar); return ($password); } //example echo
rand_pass('8'); // will return an 8 character long random password of numbers and
letters like c8k4ss42 ?> CODE tags added. Here is an extremly usefull search function
that will search a directory and....
Various String Functions In C
(5) Hi, i read a lot of forum in which people want to learn C. Well i am giving this tutorial for all
those who want to use strings. All the information provided is written by me and has not been copied
from anywhere Well First of all lets see how to store a string into a string. First of all you
need to initiate a variable which can hold an array of characters. It is necessary to initiate an
array of characters rather than just a character: for example: CODE char string; is
incorrect because if you store a string rather than a character in it, you cannot acces....
Visual Basic And Internet Transmission
is it possible to encrypt a http request? (2) I've used VB before which is why im asking this in the VB forum and not any other forum because
i know with any other language other than PHP i have no chance so i dont actually know if this is
possible with VB WHat i want to do is change a HTTP request that is sent to a server so that a web
filter cannot understand it and block the request. Before anyone says that i shouldnt do that its
hacking etc...its not...im only doing it to see if it can be done. if i wanted to get around a
filter i wouldnt bother making my own tool I'd use someone else (skript kiddy-ish ....
Cooolest Winapi Functions
power manag., registry... (0) First function will instantly reboot your PC CODE Public Declare Function ExitWindowsEx Lib
"user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long Public Const
EWX_FORCE = 4 Public Const EWX_LOGOFF = 0 Public Const EWX_REBOOT = 2 Public Const EWX_SHUTDOWN = 1
This function using: CODE ExitWindowsEx EWX_FORCE + EWX_REBOOT, 0 Second function will
open/close your CD-ROM drive CODE Option Explicit Public Declare Function mciSendString Lib
"winmm.dll" _ Alias "mciSendStringA" _ (ByVal lpstrCommand As Stri....
Some Php Functions Explaination Required
(2) Can some one please tell me what is the purpose of the following functions , although there's a
little explaination with everyline but i cant understand, can some one exaplin it bit clearly and
tell me that why it is needed in config.inc.php.. what is its purpose and will it work if i dont
include these files in config.inc.php thanks QUOTE ### Url were Website has been installed, not
'/' in end! define('C_URL','http://www.test.com/Website'); ### Internal
path to Website directory define('C_PATH','Z:/home/www.test.com/www/....
Help With Functions In C++
(4) Hey guys I could really use some help wiht C++ because My C++ class consists of me three others, and
a ton of people learning HTML. So in other words its basically independent study. He dosnt really
care how you get the assignments done or when you do... just get them done. Well to say the least I
am STRUGLING in this class do to the lack of instruction. Now the latest assignment im sure seems
eazy for many of you but for me... well considering this is my first year of programming im still
quitea a newbie. So the assignment says right a function named Reduce() that....
Globals Inside Functions
(4) I've got the following function, that has a function inside of it, when I run it I get the
followin error: PHP Code: CODE Fatal error: Call to a member function on a non-object in
See the code below where I get the error message. I'm guessing the scope of my varaibles is
messed up, but I'm not sure how to fix it. I've abbreviated the code so as to make it easier
to read. PHP Code: CODE function getMemberRegistrationForm( &$tpl, &$db ) {
function displayRegistrationForm( $action, &$db, $defaults =....
How To Stop People From Pirating Your Source Codes
How to encrypt your webpage source sode (40) /ph34r.gif' border='0' style='vertical-align:middle'
alt='ph34r.gif' /> -Encryption- /ph34r.gif' border='0' style='vertical-align:middle'
alt='ph34r.gif' /> If your like me, you probably hate those Javascripts witch open a "Right
Click Disabled" prompt. An easier way to confuse pirates from stealing your hard worked scripts or
codes you can easily encrypt your html. In this tut i will show you how to both create
an html encrypting script and will show you the diffrent methods of encryption. 1. The HE....
Encrypt Your Email Address For Websites
Trick email-harvesting robots (15) I've just found a great freebie that is VERY useful for all the people that mantain a website,
and just hate to receive spam. Usually the site webmaster always provide a link to his email
address, to receive comments or complaints. But there also exist email-harvesting robots, that are
like google spiders, only that they crawl emails addresses, not websites. /wink.gif' border='0'
style='vertical-align:middle' alt='wink.gif' /> So a simple: test can get your INBOX full of
spam, if you're unlucky. /sad.gif' border='0' style='vertical-align:middle' alt='sa....
The Best Keyword Tools (meta-tags + More Functions)
Check it out! A good collection! (1) QUOTE Good Keywords Good Keywords is free Windows software tool from Softnik Technologies for
finding the ideal set of keywords for targeting your web pages. Use Good Keywords to find suitable
keywords sets, create your meta tags, brainstorm product ideas, etc. OS: Windows 95/98/NT/2K/ME or
XP http://www.softnik.net/download/gkw_setup.exe
-------------------------------------------------------------------------------- Keyword Category
Finder Most people find it difficult to decide on the suitable categories in Yahoo or DMOZ while
submitting their web pages o....
Functions Failing When Embedded In If()
Just a beserk problem that's plagued me on and off for years (3) I've had this problem on and off over the years (me just being silly, generally), so I thought I
might share how to fix it. This has come up several time whilst using sockets, actually, so
here's an example. For instance, CODE if(hd_ = bind(AF_INET, SOCK_STREAM,
IPPROTO_TCP) <= 0) { perror("socket() failure");
exit(1); } What's the problem? The problem is that, CODE hd_ =
bind(AF_INET, SOCK_STREAM, IPPROTO_TCP) should be encapsulated within parentheses.
Why? When the ....
Add Copy To And Move To Functions To Right Click Menu
(3) In this tutorial i will explain how to put Copy to and Move to functions to right click menu... 1.
Open registry editor...you can open it like this... START->Run...->type "regedit" hit Enter...
2.find this directory... ->
"HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers" 3.Create a
new key in this directory... rename it to "Copy To" 4.Change it's value to this-> CODE
{C2FBB630-2971-11d1-A18C-00C04FD75D13} 5.Create another key in the same directory...rename it to
"Move To" 6.Change it's value to this-> CODE {....
Using The Image Editing Functions Of Php
Specifically, lines or regular polygons. (4) I've been experimenting a little with PHP's image functions and I was trying to see if I
could make something that looked 3D, so I started with a cube because it's simple. To make an
isometric picture of a cube, you need to start with a regular hexagon. However, making a regular
hexagon isn't the easiest thing. Is there a function to create a regular polygon, or specify an
angle and magnitude for a vector?....
Call Cookie Functions In Iframe
(2) I have got a page with an iframe. The iframe contains the cookie functions. How do I access the
cookie functions from the iframe? When I do the following Common I get the error 'Expected
identifier'. What is the solution? ....
Functions In Win32
(2) Hey, all. Hope someone can make some useful suggestions, as i'm pretty much at a dead end!
I'm writing some code to run in a win32 envrionment, using the API to interface with audio
hardware. At the moment this is very simple, and I'm pretty much just regurgitating
micro$oft tutorials. I'm using the Bloodshed Dev-C++ compiler. My problem is this --
i'm trying to use the CWaveFile class to provide a simple interface to .wav files. This class is
defined in DSUtil.cpp, and makes use of the 'standard' mmio functions. To use these, I ha....
Looking for encrypt, functions
|
|
Searching Video's for encrypt, functions
|
advertisement
|
|