Hello All and thanks for taking a look at this,
Does anyone know of away we can add SALT to base64_encode(), I currently use
crypt("string", "mysecret_string"), however this is not decodable from what I have read. i.e. crypt is one way where as base64_encode() swings both ways with
base64_decode().
However, I don't see base64_encode() very useful because you can't make it site or function specific.
It seems if base64_encode() and base64_decode() were SALT cabable then they could be very useful for a lot of stuff.
You could do $myhash = base64_encode( "string", "mysecret_string") and of course get it back with base64_encode( $myhash, "mysecret_string")
So long as you never gave out your "mysecret_string" then no one else could really decode it and if they actually took the time to do it then you probably need a better encryption anyway... 🙂
Does anyone know of away or functions that could do this, also is there away to propose this to the PHP GODS if anyone thinks this is a good idea then maybe we could supply offerings to the gods...lol
I'm just proposing this for kind of low level cryption stuff that you could get back if you needed or wanted too....