Image and Texture crypter - simplest use + AES

Share your advanced PureBasic knowledge/code with the community.
User avatar
Saki
Addict
Addict
Posts: 830
Joined: Sun Apr 05, 2020 11:28 am
Location: Pandora

Re: Image and Texture crypter - simplest use + AES

Post by Saki »

Image Diffusor added.

@Keya
People also often look for simple solutions.
It's nice to be able to say, look, here's something for you, try this.
Whether the NSA can crack it or a horde of crackers gets their hands on it is usually irrelevant.
All games have been cracked so far.
But think about it, these are games that were developed at a cost of many millions of dollars.
Who, seriously, is interested in a small game written with PB ?

Security relevant software is also usually created with software that has been tested and analyzed thousands or millions of times.
People can get ideas here, but hardly anyone will be so bold as to say that he got his security tools from a forum and then use them in the operating software of a nuclear power plant.

Even the much-cited hospital software, with the highest security standards available, is unlikely to be created much differently.
Whether this software is then programmed in a basic dialect, with various self-created tools or tools from forums, I leave to your imagination.

A tiny bug or a thinking error in a security software, can undermine it completely.
Who is then liable for the damage ?
This stuff must have been tested many thousands of times.
How many views do we have here on average in a thread ?

How many professionals use what we create in security relevant software at all ?

What professional security software for above mentioned institutions have you already created with PB ?
List them, show some shots !
Give us a glimpse into a requirements and specifications document from one of your professional projects.

It simply misses the point of reality.

So creative criticism is always welcome, but it should not be based on knowledge gaps or bashing.

Best Regards Saki
地球上の平和
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5342
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Image and Texture crypter - simplest use + AES

Post by Kwai chang caine »

Hello SAKI :D

I'm not enough intelligent for know if your crypter is safe :oops:
But i can say to you the three codes works here 8)

The "Diffusor" version not hide really the picture :|

Image

But the two others yes :wink:

AES method

Image

Simple method

Image

Thanks for sharing 8)
ImageThe happiness is a road...
Not a destination
User avatar
Saki
Addict
Addict
Posts: 830
Joined: Sun Apr 05, 2020 11:28 am
Location: Pandora

Re: Image and Texture crypter - simplest use + AES

Post by Saki »

Diffusor with AES added.

Hi Kwai,
thank you for your test and that you like it.

It's all OK, pewing venom is just bashing to try to make things bad across the board.

The diffuser is intended to damage the images only to the extent that no one can steal them to use them themselves.
They are then worthless because they are completely pixelated.
But you can still see the contents.
This makes it easy to manage many images in one software without anyone being able to steal them.
You don't have to use the names of the images or textures yourself.
So you can easily exchange certain images, because you can still see what it is.

Best Regards Saki
地球上の平和
User avatar
Keya
Addict
Addict
Posts: 1891
Joined: Thu Jun 04, 2015 7:10 am

Re: Image and Texture crypter - simplest use + AES

Post by Keya »

I'm confused. You say the diffusor is about leaving the image somewhat viewable, but now youve added AES to it (which renders the image unviewable) - but you've already got an AES version - so can you elaborate what's the difference between the AES version and the AES diffusor version? Thankyou
Cyllceaux
Enthusiast
Enthusiast
Posts: 458
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: Image and Texture crypter - simplest use + AES

Post by Cyllceaux »

Hi saki... I really like this...

for me the "WTF" Part is the RandomSeed. I didn't know that, if you set the Seed, every Random number will be the same. This is soooo cool.

And I learned something. For me, I use One-Time-Pad. (The best encryption, ever. Never hacked, cracked, wordlisted or brute-forced) So I changed some of my code.

Thx for the Idea and for the code.

BTW... I prefer her without that hairstyle
Image
User avatar
Saki
Addict
Addict
Posts: 830
Joined: Sun Apr 05, 2020 11:28 am
Location: Pandora

Re: Image and Texture crypter - simplest use + AES

Post by Saki »

Hi @Cyllceaux.

I am glad that you like it.

You can also take the variant with AES.
If you look at this, you will see that you can also insert this small part into your code, just like the RandomSeed.
The encoders and decoders differ only by a plus or a minus sign.
You have to take care that you don't mix up anything, because this is hardly noticeable.

Yes, the lady looks very pretty.
It's amazing how the hairstyle alone changes her.

@Keya
The AES version of the diffuser works exactly the same as the diffuser version without AES.
Both versions pixelate 33% of the image content, so the image remains visible with both.
Just try it, even with AES it is possible to manipulate only a part of the image.

Best Regards Saki
地球上の平和
User avatar
Keya
Addict
Addict
Posts: 1891
Joined: Thu Jun 04, 2015 7:10 am

Re: Image and Texture crypter - simplest use + AES

Post by Keya »

Saki wrote: Mon Jun 28, 2021 8:31 am @Keya
The AES version of the diffuser works exactly the same as the diffuser version without AES.
Both versions pixelate 33% of the image content, so the image remains visible with both.
Cool! Sorry I misunderstood. It's an interesting approach leaving the images visible to the developer, yet distorted enough they're useless to attackers/thieves in that state. (Although of course they can still be dumped after decryption, but nobody can really stop that, as Hollywood knows). And Im glad you switched to AES instead of Random()
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5342
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Image and Texture crypter - simplest use + AES

Post by Kwai chang caine »

Saki wrote:The diffuser is intended to damage the images only to the extent that no one can steal them to use them themselves.
They are then worthless because they are completely pixelated.
Yeees !!! very good and usefull idea !!! :D
Thanks a lot for your kind explanation, and also for your great code 8)



Cyllceaux wrote:BTW... I prefer her without that hairstyle
:lol:

You have right, this hairdresser make miracles :shock:
ImageThe happiness is a road...
Not a destination
User avatar
Saki
Addict
Addict
Posts: 830
Joined: Sun Apr 05, 2020 11:28 am
Location: Pandora

Re: Image and Texture crypter - simplest use + AES

Post by Saki »

@Kwai
Many thanks for your testing again.

But that was not a hairdresser, that is a wig, but not a cheap one. :wink:
地球上の平和
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5342
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Image and Texture crypter - simplest use + AES

Post by Kwai chang caine »

But that was not a hairdresser, that is a wig, but not a cheap one
:lol:
ImageThe happiness is a road...
Not a destination
User avatar
the.weavster
Addict
Addict
Posts: 1537
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Re: Image and Texture crypter - simplest use + AES

Post by the.weavster »

Saki wrote: Wed Jun 30, 2021 9:40 pm But that was not a hairdresser, that is a wig, but not a cheap one. :wink:
If you're wondering what a cheap wig looks like ...
Image

It's a wig! https://www.youtube.com/watch?v=UfJZ9pfnF70
User avatar
Saki
Addict
Addict
Posts: 830
Joined: Sun Apr 05, 2020 11:28 am
Location: Pandora

Re: Image and Texture crypter - simplest use + AES

Post by Saki »

More as 600€
Last edited by Saki on Fri Jul 02, 2021 12:29 pm, edited 1 time in total.
地球上の平和
User avatar
Kiffi
Addict
Addict
Posts: 1353
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: Image and Texture crypter - simplest use + AES

Post by Kiffi »

Please stay on topic and stop posting such inappropriate pictures.
Hygge
Post Reply