Hello,
I have a long text (lowercase char and int, no space) need to be stored in the mysql database: ie:
text:
5cd079ba15e82976bf42f4fdde
c2cc76
d5aba97900c109e1f83edbe8c1
e90489
19d049570aef8fa1574803b85b
04c975
b2904ac06e16c2157b31e381f6
be5e43
e8596cc521235de4b4159b243a
69
cc3add3c17a9a7d79f496dd38c
9a0bd1
cdd3dd2220c760a3d7c13a364d
1033c9
c08a86ba54c074dd18c4570308
47c9ae
92f9fdd90ce22a46989238321e
58ecf3
ea9f59505ce1661788ccdd11bd
5b45d5
e7c7c82df33f4da997bda001e4
0a1903
77de8ccbc9618e5d86873cc6ba
eb8016
480aca28fb28f5694514bde4a9
f82ccd
758262dfd3a9c83a920c695c3e
7549ce
cc3add3c17a9a7d79f496dd38c
9a0bd1
cdd3dd2220c760a3d7c13a364d
1033c9
c08a86ba54c074dd18c4570308
47c9ae
92f9fdd90ce22a46989238321e
58ecf3
ea9f59505ce1661788ccdd11bd
5b45d5
e7c7c82df33f4da997bda001e4
0a1903
77de8ccbc9618e5d86873cc6ba
eb8016
480aca28fb28f5694514bde4a9
f82ccd
758262dfd3a9c83a920c695c3e
7549ce
224881c5b4b13sdds63fc8ca3b
dd39c6
224881c5b4b13sdds63fc8ca3b
dd39c6
72f39aa96d281d9d5dab78fc3f
ef05b8
4b9abf7ea7b6asd39e246509cc
456c9
d6c840b0624b7d5313234e12e6
4ccade
281649e44875ba2e7efef25036
ed93a3
d1b86c8237e039604807159022
e88024
019a2e4062d45b822b1435d67a
14ec02
f48c526fb764e4c22067152951
51de0a
9506a369f280b89430200580f0
708e29
I want to secure the text by using the MySQL encode function:
Encode($longtext, $mykey), however I am not able to retrieve the text using:
Decode($longtext, $mykey), and when I do this, I only retrieve some weird characters.
My Questions are:
1. Why I retrieve some weird text when using Decode()?
2. Besides Encode, what other function can be used to BOTH Encrypt and Decrypt the text?
Thank you
Start Free Trial