Jump to content

convert openssl encrypt raw output to 20 digit number


grchap1

Recommended Posts

I am encrypting some numbers with openssl_encrypt,

example: 12345678123 using a key 1234567890. The openssl_encrypt outputs M4HX78lI9eFNHQzVXWyy/w.

 

How can I convert this raw output to a 20 digit number string please?

Link to comment
Share on other sites

What are you talking about? Your idea of a “key” has nothing to do with cryptographic keys which a purely random byte sequences, and a 128-bit long ciphertext cannot possibly fit into 20 decimal digits. Why would you even do that?

 

You should explain what you want to achieve, not how you think you can achieve it. What is the background of this strange task?

Link to comment
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.