Welcome Guest, Not a member yet? Register   Sign In
[ask] how to encrypt the url?
#2

Add another VARCHAR field to your table, named "secret_id".
If you insert a record, store a random string into that field. You can use CI's string helper.
In your url's, don't use the record id, but instead the secret_id.
If you want to be really safe, check if the random string already exists in your table before the record is inserted. If so, generate a new random string.

Hope this will help.
Reply


Messages In This Thread
[ask] how to encrypt the url? - by me_octaviana - 11-02-2017, 09:07 PM
RE: [ask] how to encrypt the url? - by Wouter60 - 11-03-2017, 12:01 AM
RE: [ask] how to encrypt the url? - by Vitaly83 - 11-03-2017, 01:22 AM
RE: [ask] how to encrypt the url? - by InsiteFX - 11-03-2017, 03:23 AM
RE: [ask] how to encrypt the url? - by Narf - 11-03-2017, 03:48 AM
RE: [ask] how to encrypt the url? - by Wouter60 - 11-03-2017, 06:04 AM
RE: [ask] how to encrypt the url? - by InsiteFX - 11-03-2017, 04:03 AM
RE: [ask] how to encrypt the url? - by Narf - 11-03-2017, 07:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB