Encrypt java decrypt php




















Last active Dec 10, Code Revisions 2 Stars 38 Forks Embed What would you like to do? Embed Embed this gist in your website. Share Copy sharable link for this gist.

Learn more about clone URLs. Download ZIP. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters. Bye the way, nice work. Your email address will not be published. Lenovo T, Kubuntu March 5, at Hardwood Floor New Jersey says:.

September 2, at March 29, at Ahmad says:. July 25, at Gorance says:. January 23, at February 10, at Mac says:. Hmm, if possible, could you post some small snippet code to point me to the right direction?

PS: I should have picked a crypto course on my masters'degree. I regret it so much rn. Cipher will be used regardless. The library you found was probably built on top of Cipher. Maybe you can tell us a little bit more about what your application is supposed to do. Then you need to use authenticated encryption. Whether to use password based encryption depends on how the application is used. Just give us some more details about the purpose of your application and I'll come up with something later.

Yesterday was a long day so I'm going to take it a bit easy first. I don't think it would have been super relevant. Cryptography courses in academic institutes are mostly about the mathematics behind cryptographic primitives, not how and when you should use specific algorithms.

I will try to answer your questions the best I can. Basically end-user. So I have no control of where the app is running.

Its supposed to run anywhere the client wants. The user install the java desktop app. Once the data is returned, we decrypt it and login to the database directly. Certain data can be accessed direcltly to the website through php files without the java app. So the php logic should be able to decrypt the database url as well.

In Summary: Open x. What is encrypted? Database URL in the database. Who should decrypt it? Java app and php How safe should it be? Enough to avoid simple hacks and not so much that is slow or causes problems to the users. Please don't quote entire posts, especially not if they are the last post in the topic.

It makes the topic harder to read. Jasypt uses the blocksize 16 bytes for AES as salt size. Smaller salts cause an exception, larger salts are simply truncated. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 1 year, 7 months ago. Active 1 year, 7 months ago. Viewed times. Im working on a legacy system that has the following tasks: 1 The Java Application saves some encrypted data on a mysql database.

IvGenerator; import org. Improve this question. KenobiBastila KenobiBastila 2 2 gold badges 12 12 silver badges 40 40 bronze badges. The algorithm used as a IV so you will need to provide that for us — John Conde.



0コメント

  • 1000 / 1000