Built-in function for hashing?

Think about email confirmation codes or reset password codes, ideally, you’ll generate a random code that is n characters long, currently, I can only do this in NodeJS because I don’t see a function in FQL that will allow me to do something like what bcrypt - npm allows me to do (hash and verify), and also generate an n-character long random code.

Is there any way to achieve this in faunadb, I’m wanting to go full-faunadb mode rather than having a mixed of rest API endpoints for some things and then faundb graphql for the others.

(I’ve updated this topic to be in the Feature Request category, so it can be voted on and discussed there)

1 Like

I also think some native crypto functions would be cool. Here is some recent dicussion.

1 Like