Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

CryptoJS AES encryption/decryption on client side with Javascript and on server side with PHP

License

Notifications You must be signed in to change notification settings

brainfoolong/cryptojs-aes-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CryptoJS 3.x AES encryption/decryption on client side with Javascript and on server side with PHP

I've long researched to make this working for me and i want to share my solution to make it possible to encrypt/decrypt data from/to CryptoJS and PHP. This works with CryptoJS 3.x and PHP with openssl support.

I use a JSON format for encryption/decryption to be able to use any possible object/array/string data on both sides. I also use the standard AES implementation from CryptoJS with a passphrase. I don't generate special keys, iv's or salts.

If you find any errors or have ideas for improvements just let me know with an issue or pull request.

Requirements

Support me

If you like to buy some coffee, i will appriciate it. You can do this on Patreon or via PayPal

Changelog

  • 26.04.2018 - fixed an issue with aes-json-format.js that included whitespace in base64 in some cases

About

CryptoJS AES encryption/decryption on client side with Javascript and on server side with PHP

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Contributors 3

  •  
  •  
  •