spaniakos / Cryptosuite

Cryptographic suite for Arduino & RPi (SHA, HMAC-SHA)
http://spaniakos.github.io/Cryptosuite/
GNU Affero General Public License v3.0
23 stars 11 forks source link

How to obtain the original string? #16

Closed flacidsnake closed 6 years ago

flacidsnake commented 6 years ago

Hi, the library works pretty well hashing strings, but, how can I do the reverse process? I mean, obtain the original string using the key and the hash.

Regards.

P.S.: Thank you for adding the license!

spaniakos commented 6 years ago

Hash functions are one way functions. It's not encryption decryption algorithm. You only hash on server and rehash in client to check the validity of the data. If you want encryption decryption algorithms check my other repos.

On Thu, Apr 12, 2018, 21:47 flacidsnake notifications@github.com wrote:

Hi, the library works pretty well hashing strings, but, how can I do the reverse process? I mean, obtain the original string using the key and the hash.

Regards.

P.S.: Thank you for adding the license!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/spaniakos/Cryptosuite/issues/16, or mute the thread https://github.com/notifications/unsubscribe-auth/ABnM6qhwtakaoQkSK8uPHcT-cr8IKKk0ks5tn6FWgaJpZM4TSTiB .

flacidsnake commented 6 years ago

Thank you for your fast reply! I'll check your AES library.

spaniakos commented 6 years ago

No problem

On Thu, Apr 12, 2018, 22:09 flacidsnake notifications@github.com wrote:

Thank you for your fast reply! I'll check your AES library.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/spaniakos/Cryptosuite/issues/16#issuecomment-380913245, or mute the thread https://github.com/notifications/unsubscribe-auth/ABnM6igchiyUcco41RNlYX7YeYSfxIEsks5tn6ZNgaJpZM4TSTiB .