Photo by Faran Raufi on Unsplash

The Strange Tale of the Disappearing Salt … Meet OpenSSL

Linux command: echo -n "Hello" | openssl enc -aes-128-cbc -pass pass:"qwerty" -e -base64 -S 241fa86763b85341
Windows command: echo | set /p = "Hello" | openssl enc -aes-128-cbc -pass pass:"qwerty" -e -base64 -S 241fa86763b85341

OpenSSL 1.1.1f 31 Mar 2020
Message: Hello
Mode: aes-128-cbc
Password: qwerty
Salt: 241fa86763b85341
========
U2FsdGVkX18kH6hnY7hTQfdhmyrMIw+cu61C/B89/Ek=
U2FsdGVkX18kH6hnY7hTQfdhmyrMIw+cu61C/B89/Ek=
53616C7465645F5F  241FA86763B85341  F7619B2ACC230F9CBBAD42FC1F3DFC49
Linux command: echo -n "Hello" | openssl enc -aes-128-cbc -pass pass:"qwerty" -e -base64 -S 241fa86763b85341
Windows command: echo | set /p = "Hello" | openssl enc -aes-128-cbc -pass pass:"qwerty" -e -base64 -S 241fa86763b85341

OpenSSL 3.0.0 7 sep 2021 (Library: OpenSSL 3.0.0 7 sep 2021)
Message: Hello
Mode: aes-128-cbc
Password: qwerty
Salt: 241fa86763b85341
========
92GbKswjD5y7rUL8Hz38SQ==

--

--

This publication brings together interesting articles related to cyber security.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Prof Bill Buchanan OBE

Professor of Cryptography. Serial innovator. Believer in fairness, justice & freedom. Based in Edinburgh. Old World Breaker. New World Creator. Building trust.