简体   繁体   中英

PHP: What to use for email confirmation code?

I first tried base64 to encode mail@domain.com but it includes / which breaks my URL which is as http://example.com/verify/<confirmation_code>

I don't want to store in Db, I want on the fly process,provided I can pass my own Salt. What should I use?

您可以对用户ID进行编码,然后将其作为确认代码发送到该位置,以便在其中检查该ID。

I use base_64 for encoding image inks to send to a resizing script this is 1 of the encryptions...

aHR0cDovLzEyM3N0b3Jlcy5jb20vbWVkaWEvY2F0YWxvZy9wcm9kdWN0L2svby9rb29sYXRyb25vbmxpbmVfMjIyMV84OTIwMTk2LmpwZw==

there is no slashes in base_64... are you using base64_encode to encrypt and base64_decode to decrypt?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM