Welcome Guest, Not a member yet? Register   Sign In
Encryption produces gibberish string
#1

$this->config    = new \Config\Encryption();
$this->encrypter = \Config\Services::encrypter($this->config); 
$ciphertext =  $this->encrypter->encrypt(base64_encode($text));


When I echo $ciphertext, I get some gibberish text(see below). Ideally, I am saving this value in the database. Is this normal?

�wD�yL��'T�Z��Oq�J��H1�b���~��x��q���a��A=�8���d�/�Ȍ�$� T����"��F�����Ѝ��5%�T;"
Reply


Messages In This Thread
Encryption produces gibberish string - by dennisdup - 02-06-2021, 10:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB