Displaying 1 result from an estimated 1 matches for "foybtman4u2t".
2008 Jun 06
1
Need help with Decryption using blowfish CBC
...ws:
require ''openssl''
require ''digest/sha1''
ivArr = [0x0D,
0x0E,
0x0A,
0x0D,
0x0F,
0x0A,
0x0C,
0x0E
]
iv = ivArr.pack("cccccccc")
bf = OpenSSL::Cipher::Cipher.new("BF-CBC")
key = Digest::SHA1.hexdigest("fOyBtMaN4u2T")
bf.decrypt
bf.key = key
bf.iv = iv
File.open("C:\\mapcrypt\\MAP.TIFF",''wb'') do |enc|
File.open("C:\\mapcrypt\\EncryptedMAP.TIFF","rb") do |f|
size = File.size("C:\\mapcrypt\\EncryptedMAP.TIFF")
bl...