Cifreaza si descifreaza  

Thrown (Ţâpat)

Pentru a cifra text, alege o parola (sau genereaza una aleator apasand "Random"), introdu textul ce urmeaza a fi cifrat in "Plain Text", apasa butonul "Encrypt" si apoi foloseste textul simplu (rosu, sub "Cipher Text") sau copiaza intreg codul HTML daca ai instalat deja scriptul pe propriul site. Mai multe informatii si suport tehnic la BlogIdol.ro.

Daca pierzi sau uiti parola nu am cum sa te ajut sa o recuperezi.

Key (Parola)


   

Plain Text


   

Cipher Text


   

HTML Code


Standard       Inline       ***

HTML Test

 

instructiuni

Pentru a putea incripta si decripta texte pe propriul site sau blog asa cum facem aici in articole, este necesar sa puneti inainte de </head>:

<script type="text/javascript" src="http://blogcrypt.googlecode.com/files/jsencryption.js"></script>

Cod

Acesta este codul de bază de utilizat în codul HTML al paginii dvs. de Web pentru a face decriptare:

<div id="uniqueID" title="encrypted text">
    <a href="javascript:decryptText('uniqueID')">Show encrypted text</a>
</div>

encrypted text is the encrypted text generated from the encryption/decryption page.

uniqueID este un nume unic pentru elementul care este generat automat de pagina aceasta. Acest ID poate fi orice set de caractere vrei, dar nu pune cheia aici, deoarece este vizibila pentru toată lumea.

Functia JavaScript decryptText gaseste textul cifrat din titlul elementului cu id uniqueID. Odata descifrat, intregul text cifrat este inlocuit cu cel descifrat.

Perechea de uniqueID-uri trebuie sa fie identice, altfel codul nu va functiona.

Facilitati Avansate

Functia decryptText poate accepta un set de element id-uri, descifrandu-le pe toate. Textul cifrat al fiecarui id poate fi cifrat cu aceleasi parole ori cu parole diferite.

Poti schimba mesajul prin care parola este solicitata pasand mesajul ca al doilea argument, eg. decryptText('uniqueID', 'Baga bre parola:')

În loc de caseta de dialog premium, aveţi posibilitatea să utilizaţi caseta de dialog JavaScript standard pentru a solicita parola dupa cum urmeaza:
decryptText('uniqueID', null, true) or decryptText('uniqueID', 'Enter the key:', true)

Notati ca IE7 blochează regulat caseta de dialog JavaScript şi va trebui să faceţi clic pe mesajul pop-up pentru a permite sa fie arătata caseta de dialog.

Bookmarklets

Apuca si taraste aceste link-uri in bookmark toolbar (nu functioneaza inca; testing): Cifreaza si Descifreaza

Select plain text and click the Encrypt button to encrypt it or select the encrypted text and click Decrypt – the bookmarklet will take you here and pre-fill the correct field. The Encrypt button is obviously of more use than the Decrypt button.

examples

Urmatoarele exemple au ca parola “parola”.

Example 1:  Basic version

Code:

<div id="uniqueID" title="encrypted text">
    <a href="javascript:decryptText('uniqueID')">Show encrypted text</a>
</div>

Plain text:
Hello World!

Example 2:  Hidden image and link

Code:

<div id="uniqueID" title="encrypted text">
    <a href="javascript:decryptText('uniqueID')">Show encrypted info</a>
</div>

Plain text: <a href="http://3w.blogidol.ro/enc/"><img src="http://farm3.static.flickr.com/2561/4110970246_ef70b22109_o.jpg" height="200" width="200" /></a><br />
<a href="http://3w.blogidol.ro/p/encryption-and-decryption-with.html">JavaScript Encryption</a>

Example 3:  Inline text

Reveal

The secret...

Code:

<a href="javascript:decryptText('uniqueID')">Reveal</a>
<br />
<br />
The secret... <span id="uniqueID" title="encrypted text"></span>

Plain text:
has been revealed!

Example 4:  Hidden text

There is *** here

Code:

There is <span id="uniqueID" title="encrypted text">
<a href="javascript:decryptText('uniqueID')">***</a></span> here

Plain text:
hidden text

Example 5:  Hide your email address from spammers

Email address: Show email address (password: the key)

Code:

Email address: <span id="uniqueID" title="encrypted text"><a href="javascript:decryptText('uniqueID', 'Enter password:')">Show email address</a> (password: the key)</span>

Plain text:
<a href="mailto:***">***</a>

Example 6:  Multiple encryptions

Decrypt text

This is cool

Code:

<a href="javascript:decryptText(['uniqueID1', 'uniqueID2'])">Decrypt text</a>
<br />
<br />
This is <span id="uniqueID1" title="encrypted text 1"></span>cool<span id="uniqueID2" title="encrypted text 2"></span>

Plain text:
<span style="color:red">really</span> and <span style="color:red">!!!</span>

Example 7:  More than 1 key  (the second key is:  the second key)

Decrypt

*** went ***

Code:

<a href="javascript:decryptText(['uniqueID1', 'uniqueID2'], 'Enter one of the decryption keys:')">Decrypt</a>
<br />
<br />
<span id="uniqueID1" title="encrypted text 1">***</span> went <span id="uniqueID2" title="encrypted text 2">***</span>

Plain text:
"Jack and Jill" (encrypted with one key) and "up the hill" (encrypted with the second key)

Example 8:  Big example  (the second key is:  the second key)

Show encrypted text

Code:

<a href="javascript:decryptText(['uniqueID1', 'uniqueID2'])">Show encrypted text</a>
<br />
<div id="uniqueID1" title="encrypted text 1"></div>
<div id="uniqueID2" title="encrypted text 2"></div>
<div class="clear"></div>

Plain text:
<div style="float:left; width: 48%">Lots of text</div> (encrypted with one key)
<div style="float:right; width: 48%">Lots more text</div> (encrypted with the second key)

Example 9:  My personal blog

Sometimes I use encryption on my personal blog to keep things hidden from prying eyes. Most of my blog can be viewed by anyone, but every once in a while, I want to write about something that I don't want certain people to read.

I give the key to people that I trust so they can read the encrypted posts. I use several different keys for my posts and different people have different keys.

Disclaimer and Credits

This is based on original work from several people, including Cheung, Percival and Walker (more details on BlogIdol.ro). I am mirroring it here for personal use and to study the code.

Daca aveti intrebari, puneti-le la BlogIdol.ro. Vezi si PwdHash.