A
A
Archakov Dennis2016-04-18 02:10:57
Encryption
Archakov Dennis, 2016-04-18 02:10:57

What is the type of encryption in Laravel?

There is such a meaning

eyJpdiI6IlwvZ2pRMGhSb2tqNVpiQjBhbExYU3V3PT0iLCJ2YWx1ZSI6IjM2YUI4c0hwQXVjZ04zRlo0M21sc3JhOGVrWVR4eDBza3h5RzlLM2JGOEU9IiwibWFjIjoiOWVlYTczMWRhZjBkM2Y4NDJhNzJiODU0ZWQ1MWUyZDQ4MTE1MDQ2Nzc2MTM2NGI2YWQ1OWVjZDUxMTJjYTdhZiJ9

When the button is clicked, this value is sent and returns the phone number. Each time the page is loaded, this value changes (the phone number is always the same).
When decoding Base64, I get this.
{"iv":"\/gjQ0hRokj5ZbB0alLXSuw==","value":"36aB8sHpAucgN3FZ43mlsra8ekYTxx0skxyG9K3bF8E=","mac":"9eea731daf0d3f842a72b854ed51e2d481150467761364b6ad59ecd5112ca7af"}

I tried to decrypt with different algorithms, nothing came of it. As I understand it, this algorithm uses value+key.
How to decrypt what's in this JSON and get the phone number. And what algorithm can be used in Laravel? Is it standard?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
D', 2016-04-18
@Denormalization

Look here:
https://github.com/laravel/framework/blob/master/s...
Used by openssl_encrypt/openssl_decrypt
Key = key from settings, usually long and complicated
Breaking is useless.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question