Encryption

taekwondokid42

New Member
Messages
268
Reaction score
0
Points
0
What is the most powerful free encryption I can get on x10hosting?

I'm currently using sha1, but for a project I need something more powerful. I'm going to assume that sha512 is the best?
 

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
Up to now, I believe it's the best.
And I also think that all php installation share the same number of algorithms.
 

vol7ron

New Member
Messages
434
Reaction score
0
Points
0
first of all you did not specify if it was a forward-only or two way encryption. i will assume you mean forward only.

sha does have the best algorithm. sha512 is probably overkill for what you need (which you should post).

i'm going to make a little security breach and tell you what i use: sha256. It's still fast enough and high enough in encryption.

the general practice is:
encoding- sha256_hex => base64
decoding - unencode base 64 and match your encryption on sha256

the sha's of which are salted
 
Last edited:

taekwondokid42

New Member
Messages
268
Reaction score
0
Points
0
Thank you.

What is the php code to put something in sha256?

I know sha1 works as such:

<?
$string = "hi";

$string = sha1($string);

?>


btw, I do indeed mean forward only. sha512 would only be considered overkill if it would come with a great performance hit.
 
Top