Skip to content

Commit

Permalink
note encryptString
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 16, 2017
1 parent 6e1297c commit 4b14217
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
23 changes: 10 additions & 13 deletions documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,26 @@
- [Localization](/docs/{{version}}/localization)
- [Frontend Scaffolding](/docs/{{version}}/frontend)
- [Compiling Assets](/docs/{{version}}/elixir)
- Security
- General Topics
- [Authentication](/docs/{{version}}/authentication)
- [Authorization](/docs/{{version}}/authorization)
- [Password Reset](/docs/{{version}}/passwords)
- [API Authentication](/docs/{{version}}/passport)
- [Encryption](/docs/{{version}}/encryption)
- [Hashing](/docs/{{version}}/hashing)
- General Topics
- [Authorization](/docs/{{version}}/authorization)
- [Broadcasting](/docs/{{version}}/broadcasting)
- [Cache](/docs/{{version}}/cache)
- [Collections](/docs/{{version}}/collections)
- [Console Commands](/docs/{{version}}/artisan)
- [Encryption](/docs/{{version}}/encryption)
- [Errors & Logging](/docs/{{version}}/errors)
- [Events](/docs/{{version}}/events)
- [File Storage](/docs/{{version}}/filesystem)
- [Hashing](/docs/{{version}}/hashing)
- [Helpers](/docs/{{version}}/helpers)
- [Mail](/docs/{{version}}/mail)
- [Notifications](/docs/{{version}}/notifications)
- [Packages](/docs/{{version}}/packages)
- [Password Reset](/docs/{{version}}/passwords)
- [Queues](/docs/{{version}}/queues)
- [Scheduled Tasks](/docs/{{version}}/scheduling)
- Database
- [Getting Started](/docs/{{version}}/database)
- [Query Builder](/docs/{{version}}/queries)
Expand All @@ -60,9 +64,6 @@
- [Collections](/docs/{{version}}/eloquent-collections)
- [Mutators](/docs/{{version}}/eloquent-mutators)
- [Serialization](/docs/{{version}}/eloquent-serialization)
- Artisan Console
- [Commands](/docs/{{version}}/artisan)
- [Task Scheduling](/docs/{{version}}/scheduling)
- Testing
- [Getting Started](/docs/{{version}}/testing)
- [Application Testing](/docs/{{version}}/application-testing)
Expand All @@ -74,7 +75,3 @@
- [Passport](/docs/{{version}}/passport)
- [Scout](/docs/{{version}}/scout)
- [Socialite](https://github.com/laravel/socialite)
- Appendix
- [Collections](/docs/{{version}}/collections)
- [Helpers](/docs/{{version}}/helpers)
- [Packages](/docs/{{version}}/packages)
8 changes: 7 additions & 1 deletion encryption.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ You may encrypt a value using the `encrypt` helper. All encrypted values are enc
}
}

> {note} Encrypted values are passed through `serialize` during encryption, which allows for encryption of objects and arrays. Thus, non-PHP clients receiving encrypted values will need to `unserialize` the data.
#### Encrypting Without Serialization

Encrypted values are passed through `serialize` during encryption, which allows for encryption of objects and arrays. Thus, non-PHP clients receiving encrypted values will need to `unserialize` the data. If you would like to encrypt and decrypt values without serialization, you may use the `encryptString` and `decryptString` methods of the `Crypt` facade:

$encrypted = Crypt::encryptString('Hello world.');

$decrypted = Crypt::decryptString($encrypted);

#### Decrypting A Value

Expand Down

0 comments on commit 4b14217

Please sign in to comment.