Removing Slashes from Bcrypt

369 views
Skip to first unread message

rafaelmsantos.com

unread,
Feb 13, 2015, 5:51:46 AM2/13/15
to f3-fra...@googlegroups.com
I'm using Bcrypt to generate random tokens, and I'm using it with time() to garantee that it will always be diferent. The problem is, sometimes the Bcrypt result uses slashes... Is there a way to avoid this or it has o be made "by hand". 
Thanks in advance.

ikkez

unread,
Feb 13, 2015, 6:02:26 AM2/13/15
to f3-fra...@googlegroups.com
you can use the $f3->hash method to generate unique alphanumeric tokens. what BCrypt returns is unpredictable and always diferent.

rafaelmsantos.com

unread,
Feb 13, 2015, 6:17:51 AM2/13/15
to f3-fra...@googlegroups.com
Thats it, thanks again Ikkez
Reply all
Reply to author
Forward
0 new messages