Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

OpenSSL Generate Salt, Key and IV

Posted on October 21, 2015October 26, 2015 By David Kittell
# For 256 CBC
openssl enc -aes-256-cbc -k MySuperSecretPassPhrase -P -md sha1 

The above code will generate this result (Make sure you set your MySuperSecretPassPhrase to something unique)

salt=9286F768BE82A5DB
key=30EF28D3A84CA1F0B24BBA23C329ECAE4445B6D61EF2EB43AEB6560096D4291D
iv =FE2AB00F0B81EEA78F789980ACE6CAE3
Originally Posted on October 21, 2015
Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code UNIX Shell Scripts

Post navigation

Previous post
Next post

Related Posts

PowerShell – Disable Auto Run In Windows

Posted on April 8, 2016April 8, 2016

function Disable-AutoRun { $item = Get-Item ` "REGISTRY::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\IniFileMapping\AutoRun.inf" ` -ErrorAction SilentlyContinue if (-not $item) { $item = New-Item "REGISTRY::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\IniFileMapping\AutoRun.inf" } Set-ItemProperty $item.PSPath "(default)" "@SYS:DoesNotExist" } function Enable-AutoRun { Remove-Item "REGISTRY::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\IniFileMapping\AutoRun.inf" -Force } Disable-AutoRun # Enable-AutoRun $path =’HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer’ Set-ItemProperty $path -Name NoDriveTypeAutorun -Type DWord -Value 0xFF Reference: http://stackoverflow.com/questions/14564380/how-to-disable-autorun-for-all-drives…

Read More

C# WinForm Write Text Log

Posted on July 31, 2014October 26, 2015

public void LogMessage (string msg) { string sFilePath = Environment.CurrentDirectory + "Log_" + System.AppDomain.CurrentDomain.FriendlyName + ".txt"; System.IO.StreamWriter sw = System.IO.File.AppendText(sFilePath); try { string logLine = System.String.Format( "{0:G}: {1}.", System.DateTime.Now, msg); sw.WriteLine(logLine); } finally { sw.Close(); } } LogMessage("Problem with program"); Originally Posted on July 31, 2014Last Updated on October 26,…

Read More

Host File Update

Posted on July 29, 2013November 15, 2016

Proxy Server host block list is now available at http://goo.gl/jXiOLp, make sure you do not use this in Windows host file. http://hosts-file.net/ad_servers.txt http://jamesisbored.com/iphone/content/hosts.php http://jansal.googlecode.com/svn/trunk/adblock/hosts http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext http://pgl.yoyo.org/as/serverlist.php?hostformat=hosts;showintro=0&mimetype=plaintext http://someonewhocares.org/hosts/hosts http://sysctl.org/cameleon/hosts http://unbelovedhosts.apk.defim.de/hosts http://winhelp2002.mvps.org/hosts.txt http://www.malwaredomainlist.com/hostslist/hosts.txt http://www.montanamenagerie.org/hostsfile/hosts.txt https://adaway.org/hosts.txt It’s a good idea to do this script in a directory that is specific to your host…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes