Jump to content

encrypt Methods


Recommended Posts

 

1a. md5 is a function. when the function is used it

encript's a string into a 32 charecter ,(Also note that

md5 can be used with other php encripting function's like

sha1 and salt md5 can not be decrited yet! i say it agin yet!).

 

md5() example

 

<?php
$paswword="redarrow";
$password=md5($password);
echo $password;
?>

 

 

2a. sha1 is a function. when the function is used it encript's a

string into a 40 charecter ,(Also note that sha1 can be used with

other php encripting function's like md5 and salt but can not be uncripted

yet! i say agin yet!).

 

sha1() example

 

<?php
$paswword="redarrow";
$password=sha1($password);
echo $password;
?>

 

 

 

3a. base64_encode() function is only 8 bit ,(Also note thae base64_encode ()

is not like the big boys like sha1 and md5 or salt becouse base64_encode can be

base64_decode() becouse of the grate old days use of this function there are meny

internet sites offering decoding help.).

 

base64_encode() and base64_decode() example

 

<?php
$paswword="redarrow";
$password=base64_encode($password);
echo $password;

//to decode use: echo base64_decode($password);
?>

 

You also can look up crypt() function that also has meny functions

to encript but is only one way encript and

no decript

 

link for crypt

http://uk3.php.net/crypt

 

 

 

.

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/42267-encrypt-methods/#findComment-205069
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.