Displaying 1 result from an estimated 1 matches for "mapcrypt".
Did you mean:
mailcrypt
2008 Jun 06
1
Need help with Decryption using blowfish CBC
...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")
blocks = size / 8
for i in 1..blocks
r = f.read(8)
cipher =...