Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Encryption tool Recommendation?

Featured Replies

Hi all,

 

I am looking to encrypt some data in a form echoed in php.

 

If the user views the source of the page they'll just get the encrypted string, however the form should still submit as normal.

 

Can anyone recommend a php function / encryption tool that will do this for me?

 

Thanks in advance,

 

Wayne.

So you want to encrypt the html that makes up the form? or you want to encrypt the form values the user has submitted?

  • Author

Well i would like to encrypt the HTML form itself.

 

I have done a bit of research into it seems to be a touchy issue in cases, some people say it's just a waste of time while others seem to think its not and is quite easily done with the right tool/script and not having to rely on a javascript enabled browser, in other words via PHP.

 

I guess what im really asking is there a a way of just encrypting a couple of lines of your PHP that when it is echoed/printed to the browser in HTML that those couple of lines will be encrypted and when the users submits the form the form then gets decrypted before submission??

 

 

Wayne.

You can use PHP to echo out the encrypted HTML but its not possible to decrypt it without using javascript. In practice its a wasted of time, you can see the form code in the DOM once javascript has decrypted it.

  • Author

Ok no worries thanks for your replies Jock.

 

Wayne.

Just out of interest, why did you want to encrypt the form? To stop spam bots or something?

  • Author

Yes to stop spam bots & to mask form sensitive info

 

Wayne

waynef if you're looking to mak sensitive information (or keep it secure) you'll have to install a TLS/SSL. They're very cheap (namecheap.com offers one free with every domain purchase)

 

Add a field and hide it, if it gets submitted then well, it's a spammer.

 

<input type="text" name="first_name_" style="display:none" />

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.