username: shaficsebd

php.internals

Shafi Upwork

10 years ago
I was working Base64 Decode and Encode I realize how it could be if we add a password with it? we use $string = 'i am trying to do something'; $encode = base64_encode($string ,'mypassword'); $decode = base64_decode($str, 'mypassword'); so if password match then we will get result or not.. just another level of security.. S M SHAFIUZZAMAN B. Sc Engg. in Computer Science & Engineering Phone: +880 191 588 4826 Email: shafisami005@gmail.com, upworkshafi@gmail.com

Kalle Sommer Nielsen

10 years ago
On Aug 10, 2016 15:15, "Shafi Upwork" <upworkshafi@gmail.com> wrote:
> > I was working Base64 Decode and Encode > I realize how it could be if we add a password with it? > we use > > $string = 'i am trying to do something'; > $encode = base64_encode($string ,'mypassword'); > > $decode = base64_decode($str, 'mypassword'); > so if password match then we will get result or not.. just another level
of
> security..
Seems like this should be an rfc with discussion before requesting a vcs account.

Michał Brzuchalski

10 years ago
It doesn't look like base64_*'s responsibility at all. Those global functions should be just encoder and decoder and notbing yo do with security! 10.08.2016 3:24 PM "Kalle Sommer Nielsen" <kalle@php.net> napisał(a):