Displaying 1 result from an estimated 1 matches for "encryptedmap".
2008 Jun 06
1
Need help with Decryption using blowfish CBC
...ot;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 = bf.update(r)
enc << cipher
end
if size%8 >0
r = f.re...