Is it possible to specify which salt is used when encrypting strings with ruby-bcrypt?
I know it's not very safe, but I only use it for not-high security data: I have a plattform, and when a user deletes his account, i still want to know if this user was registered with this email before (due to free credits on registration).
So I thought I will encrypt the email with Bcrypt (before deletion) and later I can query afterwards if this hash exists when the user wants to register again with this email address?
But now i realized that bcrypt always procudes a new salt... Can I specify the salt somehow?
Thanks,
DISCLAIMER/ATTENTION:
IN GENERAL YOU SHOULD NEVER SPECIFY SALTS DIRECTLY - ITS INSECURE!!!