Skip to content

Crypt is a PHP and Javascript Encryption/Description Script

Notifications You must be signed in to change notification settings

Hunter-Dolan/Crypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Project Crypt

Project Crypt is a set PHP and JavaScript functions made to encrypt and decrypt strings.

Crypt uses an encryption method based on the wonderful code by Josh Goebel in this pastie http://pastie.org/pastes/368335.

##Notes: Just because the end result of the encrypted string is encoded in Base64 doesn't mean that it can just be decoded with a Base64 decoder. The only reason for the Base64 encoding is to make the encrypted string a bit more eye pleasing and to potentially confuse an amateur hackers.

##Usage:

In order to use Project Crypt you must first include the script corresponding to the scripting language you're using. And if that doesn't make sense to you then this script most likely isn't for you.

##Examples:

JavaScript - Encrypt

document.write(encrypt('test','mySuperSecretPassword'));

JavaScript - Decrypt

document.write(decrypt('qJzXqw==', 'mySuperSecretPassword'));

PHP - Encrypt

echo encrypt('test','mySuperSecretPassword');

PHP - Decrypt

echo decrypt('qJzXqw==', 'mySuperSecretPassword');



######Stay Classy My Friends

About

Crypt is a PHP and Javascript Encryption/Description Script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published