tag:blogger.com,1999:blog-1296766759099243428.post7577286525067762277..comments2020-03-14T00:10:14.468-07:00Comments on Matt Galanto's Personal Blog: Multimedia Fusion and BlowfishMatt Galantohttp://www.blogger.com/profile/03664202525450009629noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-1296766759099243428.post-31281760748884979682020-02-10T22:24:44.155-08:002020-02-10T22:24:44.155-08:00Tindworld Apk is the Best App for online Dating i...Tindworld Apk is the Best App for online Dating it’s a amzing site And you creat your new friends here download this app to and connect to strang people And Lot of freshmint I am cheak this app it’s a amazing and I recomand this app So you can download this app To follow this link here .<a href="https://tind-world.com/best-instagram-mod-apk/%22" rel="nofollow">Tind-World.com</a>Jhonvickhttps://www.blogger.com/profile/05084542168288675445noreply@blogger.comtag:blogger.com,1999:blog-1296766759099243428.post-31266095594741386442015-06-26T02:12:20.594-07:002015-06-26T02:12:20.594-07:00Ahhh, super silly me. I didn't read the docume...Ahhh, super silly me. I didn't read the documentation well enough, it does actually just do first 8 bytes. So I feed it 8 bytes at a time and it works perfectly now.<br />http://play.golang.org/p/7QWMKyK0Ej<br />http://gyazo.com/ecf156eca4052277c7fe9f89bbe02db8<br /><br />Thank you so much Matt, you are awesome :)Anonymoushttps://www.blogger.com/profile/02187479495632185134noreply@blogger.comtag:blogger.com,1999:blog-1296766759099243428.post-51451733558459701002015-06-25T18:36:33.493-07:002015-06-25T18:36:33.493-07:00I'm not really sure where to get the latest ve...I'm not really sure where to get the latest version. The Blowfish object was distributed by Clickteam as part of one of the bonus packs. When I updated the object, I just sent it to them. I assume they updated it in the bonus pack, but I never looked into it. Try downloading and reinstalling the bonus packs.<br /><br />I looked into Go a bit more and it looks like it only encrypts/decrypts the first 8 bytes that you give it. You would have to loop through each 8-byte chunk to encrypt/decrypt more than 8 bytes. It looks like you may be able to make use of some encryption modes but I'm not sure how that works in Go. The old version of the Blowfish object used the ECB encryption mode but the newer version of the object has support for better encryption modes.<br /><br />Also, I couldn't find any documentation that discusses how files are read in Go. I'm assuming they read in binary mode, but if they're reading in text mode, this could cause some problems in files containing new lines.Matt Galantohttps://www.blogger.com/profile/03664202525450009629noreply@blogger.comtag:blogger.com,1999:blog-1296766759099243428.post-56931365695498938252015-06-25T17:50:19.503-07:002015-06-25T17:50:19.503-07:00Yes, the site is a 'sandbox', most of real...Yes, the site is a 'sandbox', most of real world code can't run on it. I just use it becaues its 1 stroke away from Vim.<br /><br />How do I get the updated version of Blowfish Object?<br /><br />Also, I am using padding. Without padding, the len(b)%8 check panics. So when I encrypt, and decrypt with Blowfish Object, there are empty spaces left in the file on each line.<br />Anonymoushttps://www.blogger.com/profile/02187479495632185134noreply@blogger.comtag:blogger.com,1999:blog-1296766759099243428.post-89733888345419557542015-06-25T11:07:39.159-07:002015-06-25T11:07:39.159-07:00It looks like you're using an old version of t...It looks like you're using an old version of the Blowfish object. The updated version supports a Reverse Bytes mode that will make the object's encryption compatible with other implementations so you won't need to bother with reversing bytes in your Go code. Unfortunately, you can't use Reverse Bytes mode with data encrypted with the older versions of the Blowfish object (if that's a concern, you can just disable the Reverse Bytes mode).<br /><br />A few notes:<br />-Filtering is only done on strings. It will not be done on files so your filtering options are irrelevant when dealing with files.<br />-You have disabled file padding. This means that if the size of your file is not a multiple of 8, the last few bytes will not be encrypted. For example, your "foo" file is only 3 bytes so no encryption would be done on it.<br /><br />I'm not familiar with Go and the sources you posted wouldn't run for me because it seems that the site had trouble locating Blowfish.Matt Galantohttps://www.blogger.com/profile/03664202525450009629noreply@blogger.comtag:blogger.com,1999:blog-1296766759099243428.post-74465784905023324022015-06-25T08:29:25.403-07:002015-06-25T08:29:25.403-07:00http://gyazo.com/0a024f485c150359423848ce99eec0c2
...http://gyazo.com/0a024f485c150359423848ce99eec0c2<br /><br />This:<br />http://gyazo.com/08583a5d0f90045c37d64005d4ce0c5f<br /><br />Becomes:<br />http://gyazo.com/dc90c417c0a46e682c0d09508d02c410Anonymoushttps://www.blogger.com/profile/02187479495632185134noreply@blogger.comtag:blogger.com,1999:blog-1296766759099243428.post-88258334640505535912015-06-25T08:23:32.336-07:002015-06-25T08:23:32.336-07:00Ok, this code seems to work when I encrypt a file ...Ok, this code seems to work when I encrypt a file wdata.dat with BlueFish Object that contains a single word: foo. <br /><br />http://play.golang.org/p/hrBg1BEoNb<br /><br />But as soon as I have multiple words or add newlines, spaces or special characters, I get garbage.<br /><br />Any ideas why?<br /><br />I disabled 'Filter characters 0 to 31' and both text boxes are empty.Anonymoushttps://www.blogger.com/profile/02187479495632185134noreply@blogger.comtag:blogger.com,1999:blog-1296766759099243428.post-76209384475611079422015-06-24T20:39:42.387-07:002015-06-24T20:39:42.387-07:00Hi Matt,
I have to be able to replicate Blowfish ...Hi Matt,<br /><br />I have to be able to replicate Blowfish Object encryption/decription for legacy purposes. I've been trying to crack it for 2 days now and I really need your help.<br /><br />http://play.golang.org/p/sKrXmdoDSg<br /><br />Here is my code. It always returns garbage, no matter what I try to do.<br /><br />Here is the one without byte swapping with properly encrypted Blowfish file (binary).<br />http://play.golang.org/p/-AMPNp0fzy<br />Works like charm.<br /><br />Please, can you assist me in all the things I need to replicate in order to be able to encrypt/decrypt Blowfish Object compatible files?Anonymoushttps://www.blogger.com/profile/02187479495632185134noreply@blogger.comtag:blogger.com,1999:blog-1296766759099243428.post-85678319742673034562015-06-23T09:47:40.966-07:002015-06-23T09:47:40.966-07:00It's been a while since I've looked at the...It's been a while since I've looked at the object, but if I recall correctly, filtering is done when strings are encrypted (or when the Filter format is selected for output with EncryptStringAdv$). Filtering takes any characters in the result that are set to be filtered (% and the NULL character by default) and converts them to %xx, where xx are two hexadecimal digits representing the code of the character. When strings are decrypted (or when the Filter format is selected for input with DecryptStringAdv$), those %xx things are converted back into their correct characters before any decryption is done.<br /><br />The % and NULL characters are the only ones that NEED to be filtered because the NULL character is used to mark the end of a string so not filtering it could cause your encrypted string to be truncated and because the % character is used in the filtering process. You can optionally filter other characters as well. The "Characters with Codes 0 to 31" are a special set of characters that are generally used for formatting (like line breaks) and don't tend to have actual picture representation. Some people may prefer to filter all of these out, so I added that option. You can safely ignore it that option if you'd like.Matt Galantohttps://www.blogger.com/profile/03664202525450009629noreply@blogger.comtag:blogger.com,1999:blog-1296766759099243428.post-14961851790327336822015-06-23T08:30:51.137-07:002015-06-23T08:30:51.137-07:00What does Enable Filtering of Characters with Cod...What does Enable Filtering of Characters with Codes 0 to 31 mean?Anonymoushttps://www.blogger.com/profile/02187479495632185134noreply@blogger.comtag:blogger.com,1999:blog-1296766759099243428.post-84342679174703421202013-03-13T05:28:08.191-07:002013-03-13T05:28:08.191-07:00Thanks. When you said "unsigned long", I...Thanks. When you said "unsigned long", I assumed 8 bytes. Silly me. I flipped every four byte sequence, ran it through the Blowfish/ECB/NoPadding cipher then flipped the output. It worked!Anonymoushttps://www.blogger.com/profile/13899592204673057148noreply@blogger.comtag:blogger.com,1999:blog-1296766759099243428.post-66412313700262686622013-03-12T13:13:08.869-07:002013-03-12T13:13:08.869-07:00If you're using Reverse Bytes mode, you should...If you're using Reverse Bytes mode, you shouldn't need to do anything special. Otherwise, I think you'll need to reverse the order of every 4 bytes.<br /><br />If you had the encrypted bytes:<br />byte0 byte1 byte2 byte3 byte4 byte5 byte6 byte7<br />you would reorder them as<br />byte3 byte2 byte1 byte0 byte7 byte6 byte5 byte4<br />and then decrypt them. Finally, reorder them back to their original order.Matt Galantohttps://www.blogger.com/profile/03664202525450009629noreply@blogger.comtag:blogger.com,1999:blog-1296766759099243428.post-30598805603897652762013-03-12T08:59:30.138-07:002013-03-12T08:59:30.138-07:00Hi Matt. I'm struggling to get my head around ...Hi Matt. I'm struggling to get my head around what filtering I need to put in place to decrypt MMF blowsfish encrypted files without MMF. I tried flipping the endianness of every 8 bytes, but the result was garbled rubbish. steve (at) atulos dot com.Anonymoushttps://www.blogger.com/profile/13899592204673057148noreply@blogger.comtag:blogger.com,1999:blog-1296766759099243428.post-45551695695453486012012-07-18T10:19:53.309-07:002012-07-18T10:19:53.309-07:00Good times, man. Good times.Good times, man. Good times.Matt Galantohttps://www.blogger.com/profile/03664202525450009629noreply@blogger.comtag:blogger.com,1999:blog-1296766759099243428.post-76686026791897075972012-07-18T10:19:29.334-07:002012-07-18T10:19:29.334-07:00This comment has been removed by the author.Matt Galantohttps://www.blogger.com/profile/03664202525450009629noreply@blogger.comtag:blogger.com,1999:blog-1296766759099243428.post-47449780107677849922012-07-17T20:39:11.394-07:002012-07-17T20:39:11.394-07:00Hi Matt!
I still miss our fun in vchat!
Happy to ...Hi Matt!<br /><br />I still miss our fun in vchat!<br />Happy to see you are alive and well!<br /><br />Later,<br />Jeff VJeff Vhttps://www.blogger.com/profile/00106145086273127370noreply@blogger.com