Jump to content

PHP aes 128 / 256 bit encrypting

Joveice
Go to solution Solved by vorticalbox,

Hi, I've noticed that I can encrypt with mysql tho I don't want to be sending the stuff thats going to be encrypted in to the mysql before encryption so it cannot be find in any logs.

So I'm wondering how I can encrypt aes 128 / 256 bit in PHP. I have seen this AES-Rijndael tho That it's deprecated in php 7.1 and some say that it's not a compleat AES 256Bit encryption. So what should I use? I havent been able to find anything else than this aes-rijndael.

 

Just becouse someone gonna say it, No I'm not going to use this for storing passwords. I need to store some sensetive information that I can get later.

Back-end developer, electronics "hacker"

Link to comment
Share on other sites

Link to post
Share on other sites

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Joveice said:

Thank you, exactly what I need.

Remember you should store the key someone, a database or something. it does say in the coments.

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
Share on other sites

Link to post
Share on other sites

6 minutes ago, vorticalbox said:

Remember you should store the key someone, a database or something. it does say in the coments.

I see that this fails like 1 out of 10 times and only passes a IV of x bytes when there are 16 bytes required, How does one fix that? :P

Back-end developer, electronics "hacker"

Link to comment
Share on other sites

Link to post
Share on other sites

24 minutes ago, Joveice said:

I see that this fails like 1 out of 10 times and only passes a IV of x bytes when there are 16 bytes required, How does one fix that? :P

No idea just now as I'm on my phone and found that site on google.

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×