A
A
Anton2016-05-20 01:14:13
OpenSSL
Anton, 2016-05-20 01:14:13

Why does the "salt must be an 8-octet string" error occur?

I did everything according to this manual, except:

encrypted = encrypter.update 'top secret document'
encrypted << encrypter.final

Didn't write it.
As a result, it swears at this line:
encrypter.pkcs5_keyivgen pass_phrase, salt
Error:
salt must be an 8-octet string

I don't understand what she means.
I use this salt:
N0YIYm3wAJrhwsl3b41PPKOzmatYEbvay0dZDaUSC48D2040uB01tfklFO7SsSrJ

Если изменить на соль и примера, то все нормально. Что нужно? Почему мою соль не принимает?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
evnuh, 2016-05-20
@evnuh

lmgtfy.com/?q=octet

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question