Skip to content

Commit

Permalink
docs: add description of offset parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
csirianni committed Dec 10, 2023
1 parent 832bc4a commit d42b234
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/cryptography.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ namespace cryptography
*
* @param password the password to encrypt
* @param b the secret key
* @param offset the number of bytes to leak
* @return std::string the encrypted password
*/
std::string encryptPassword(const std::string &password, unsigned char *b, size_t offset = 0);
Expand All @@ -37,6 +38,7 @@ namespace cryptography
*
* @param passwords the set of passwords to encrypt
* @param b the secret key
* @param offset the number of bytes to leak
* @return std::vector<std::string> the encrypted passwords
*/
std::vector<std::string> encrypt(const std::unordered_set<std::string> &passwords,
Expand Down

0 comments on commit d42b234

Please sign in to comment.