grchap1 Posted August 1, 2017 Share Posted August 1, 2017 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? Quote Link to comment Share on other sites More sharing options...
Jacques1 Posted August 1, 2017 Share Posted August 1, 2017 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.