paragonie / ciphersweet

Fast, searchable field-level encryption for PHP projects
https://ciphersweet.paragonie.com
Other
437 stars 32 forks source link

Is a salt needed with Halite encryption? How do I supply one? #21

Closed OmegaZero closed 6 years ago

OmegaZero commented 6 years ago

Is there a way to provide a salt value with the encryption for Halite? Or do I even need to (perhaps the salt is included in the encrypted value)? I see you can use a salt to derive a password but I don't see anything about doing symmetric encryption with a salt.

Thanks!

paragonie-scott commented 6 years ago

I think you're in the wrong repository. But Halite does all of that behind-the-scenes. https://github.com/paragonie/halite/blob/cbda59b8e39bfb02924cc6e2ee1c63accfda5da3/src/Symmetric/Crypto.php#L262-L270

OmegaZero commented 6 years ago

Ah yes, my apologies! And thanks for the help again! :)

paragonie-scott commented 6 years ago

Happy to help :)