X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=www%2Fcipher.html;h=3b540f65dc03fbd062efb5f048c98bbbf3bcf9e6;hb=4ebe5f091eb0b2fb1f6dc88f8d0f67d14bb79c33;hp=1c0afc1ddd732be28686ef373b41c77094561a34;hpb=ce66ab1f57d3f9b7192c74cd15912239071ba443;p=imagemagick diff --git a/www/cipher.html b/www/cipher.html index 1c0afc1dd..3b540f65d 100644 --- a/www/cipher.html +++ b/www/cipher.html @@ -1,16 +1,20 @@ - - + + - ImageMagick: Encipher or Decipher an Image + ImageMagick: Encipher or Decipher an Image - + @@ -20,29 +24,52 @@ - + - + + + + + +
- - [ImageMagick] - - [sponsor] +
+ + +
- + ImageMagick Logo -
@@ -61,6 +88,9 @@
Mac OS X
+
+ iPhone +
Windows
@@ -90,7 +120,7 @@ PerlMagick
- Magick++ + Magick++
- Links + Links
- - +
- +

Enciphering and Deciphering Images

+ -

Introduction to Enciphering and Deciphering Images

Most images, by design, are made to be viewed often and by many people. Web images, for example, may be viewed hundreds of times a day by a multitude of web vistors. However, in some cases, you may want to keep a particular image private so that only you or perhaps a select group of your friends or web visitors can view it. ImageMagick permits you to scramble your images such that unless someone knows your passphrase, they will be unable to view the original content.

@@ -182,7 +208,7 @@
-

Encipher an Image

+

Encipher an Image

Use the -encipher option to scramble your image so that it is unrecognizable. The option requires a filename that contains your passphrase. In this example we scramble an image and save it in the PNG format:

@@ -193,7 +219,7 @@

$magick> convert rose.jpg -encipher smiley.gif rose.png

-

Decipher an Image

+

Decipher an Image

Use the -decipher option to unscramble your image so that it is recognizable once again. The option requires a filename that contains your passphrase. In this example we unscramble an image and save it in the JPEG format:

@@ -201,7 +227,7 @@

$magick> convert rose.png -decipher passphrase.txt rose.jpg

-

Encipher and Decipher Caveats

+

Encipher and Decipher Caveats

Some formats do not support enciphered pixels-- the JPEG or GIF format, for @@ -236,8 +262,8 @@ use a standard cipher and mode so other vendors are encouraged to support enciphered image content.

Some small practical examples of image enciphering can be found in IM -Examples Encrypting Image Data.

+Examples Encrypting Image Data.

@@ -252,7 +278,7 @@ Examples