title: Openssl RC4 - password as plain text
body: <p>I am trying to encrypt using RC4 using openssl. I can match results with online cipher tools only with key as hex but not as plaintext. </p>
  
  <p><strong>Using password option with plaintext - DOES NOT MATCH.</strong></p>
  
  <p><em># echo -ne "stackoverflow" | openssl rc4 -pass pass:"rc4cipher" -nopad -nosalt | xxd -p</em></p>
  
  <p>Result : 8189898ec30bd96a81bca0e293</p>
  
  <p><strong>Getting the symmetric key for the password</strong></p>
  
  <p><em>#echo -ne "stackoverflow" | openssl rc4 -pass pass:"rc4cipher" -nopad -nosalt -p</em></p>
  
  <p>key=1E8B649064CC6657312EE7346ED410A4</p>
  
  <p><strong>With hexa key for the above password (-k option) - MATCHES.</strong></p>
  
  <p>echo -ne "stackoverflow" | openssl rc4 -K "1E8B649064CC6657312EE7346ED410A4" -nopad -nosalt | xxd -p</p>
  
  <p>Result :8189898ec30bd96a81bca0e293</p>
  
  <p>I can match my result with online tools by using key as hex but not as plain text. </p>
  
  <p><a href="https://i.stack.imgur.com/QQP6W.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QQP6W.jpg" alt="plain_text"></a> <a href="https://i.stack.imgur.com/y5Zuk.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y5Zuk.jpg" alt="hexa"></a></p>
  
  <p>Can someone help please me with the option to use with openssl ? </p>
  
  <p>Thanks,</p>
  
  <p>Ak</p>