how to use encrypt and decrypt

how to use encrypt and decrypt

how to encrypt and decrypt with jquery, then send to the controller laravel