Is there a way to create authentication system like Rails's `has_secure_password`?


#1

Is there a way to create authentication system like Rails’s has_secure_password?

I’m new to Echo / Golang and I come from Rails.

I don’t understand if there is a way in gin-gonic like the Rails’s system with has_secure_password, bcrypt and password_digest.

I’m wrong?


#2

No ?


#3

No, because the problem is not the jwt, but the password encryption…

Read that link about Rails mechanism.


#4

Golang has native bcrypt package that does this, no need echo or any framework for this.


#5

Ok. Thanks. And how? Some tutorial, best practices? I need to reinvent the wheel?