Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Special characters supported in bcrypt encryption

Tags:

c#

bcrypt

In our application, we are using bcrypt for hashing the credentials.

What are all the special characters accepted other than available special characters in keyboard?

For example, i have analysed about dash https://en.wikipedia.org/wiki/Dash . In this link there are many types in dash. Is these all kind of dash will be allowed in bcrypt?

I just want to confirm all other special characters list regarding this.

like image 319
s p Avatar asked Oct 27 '25 10:10

s p


1 Answers

bcrypt works on bytes, not on characters, so the characters supported by bcrypt are the characters supported by whatever encoding you're using.

If you're using Latin-1 as your encoding, the supported characters will be all Latin-1 characters. If you're using a Unicode encoding, such as UTF-8, then the supported characters will be all Unicode characters.

like image 176
Tanner Swett Avatar answered Oct 28 '25 23:10

Tanner Swett



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!