Tue Jan 24 12:21:26 CET 2006
On 2006-01-24 11:31, Nils Müllner wrote:
> I', new to Erlang.
> My Task: I have Key, Vector and Plaintext given for
> crypto:aes_cbc_128_encrypt(Key, Vector and Plaintext). Now I need to
> implement some kind of Brute Force to test all Keys and Vectors till i
> find the right ones for a direct match (compare plaintext /w result) and
> measure time.
> What is the best way to travers through the keys? Should i make lists
> and travers through them?
i would suggest a recursive function that just ''adds 1'' to the key
until you reach (text == plaintext) or (key == key_max). the same for
the vector (in an inner recursion).
i hope you have a small key/vector space to search.
More information about the erlang-questions