bkcrack 1.8.0
Crack legacy zip encryption with Biham and Kocher's known plaintext attack.
password.hpp
Go to the documentation of this file.
1#ifndef BKCRACK_PASSWORD_HPP
2#define BKCRACK_PASSWORD_HPP
3
4#include "Keys.hpp"
5#include "Progress.hpp"
6
8
23auto recoverPassword(const Keys& keys, const std::vector<std::uint8_t>& charset, std::size_t minLength,
24 std::size_t maxLength, std::string& start, int jobs, bool exhaustive, Progress& progress)
25 -> std::vector<std::string>;
26
39auto recoverPassword(const Keys& keys, const std::vector<std::vector<std::uint8_t>>& mask, std::string& start, int jobs,
40 bool exhaustive, Progress& progress) -> std::vector<std::string>;
41
42#endif // BKCRACK_PASSWORD_HPP
Keys defining the cipher state.
Definition Keys.hpp:10
Structure to report the progress of a long operation or to cancel it.
Definition Progress.hpp:10
auto recoverPassword(const Keys &keys, const std::vector< std::uint8_t > &charset, std::size_t minLength, std::size_t maxLength, std::string &start, int jobs, bool exhaustive, Progress &progress) -> std::vector< std::string >
Try to recover the password associated with the given keys.
constexpr auto mask
Constant value for bit masking.
Definition types.hpp:39