M
M
Mitya Kolesnikov2014-02-23 00:57:13
PHP
Mitya Kolesnikov, 2014-02-23 00:57:13

Which string encryption method to choose in the following example?

I offer several variations of encrypted strings:

0000 = 4V5Q10o4M3vLe7Bx41y5M67n+CY=
0 = DFXbU4Z/oPur4IuKhk1fUl4910M=
1111 = ZqNSHv3VnboozSguaUfYUwqO9Vg=
password = rnqBiufuMKYb3WV5c/XmEu01dgw=

Is it possible to determine the encryption algorithm from such data?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Rsa97, 2014-02-23
@Rsa97

Base64, each line is 27 characters long, 27*6/8 = 20 bytes = 160 bits binary value, possibly SHA-1. Since sha1('0') does not directly match decode_base64('DFXbU4Z/oPur4IuKhk1fUl4910M='), a salt must have been used.

N
Nazar Mokrinsky, 2014-02-23
@nazarpc

The output seems to be base64, but not from the original data, which means that the original data is being processed by something else.

M
Maximus43, 2014-02-23
@Maximus43

Are you sure that these are the encrypted strings, and not a hash function from these strings? Pretty sure it's a one-way hash.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question