Class LSSodium
package | Default |
---|
checkIfKeyExists(): void
Throws |
|
---|
checkIfLibraryExists(): void
decrypt(string $sEncryptedString,boolean $bReturnFalseIfError = false): string
Throws |
|
---|
string
Encrypted string to decrypt
boolean
false by default. If TRUE, return false in case of error (bad decryption). Else, return given $encryptedInput value
string
Return decrypted value (string or unsezialized object) if suceeded. Return FALSE if an error occurs (bad password/salt given) or inpyt encryptedString
encrypt(string $sDataToEncrypt): string
Throws |
|
---|
string
Data to encrypt. Could be a string or a serializable PHP object
string
Return encrypted AES256 CBC value
generateEncryptionKeys(): void
Throws |
|
---|
getEncryptionKey(): string
Throws |
|
---|
string
Return encryption key string
getEncryptionNonce(): string
Throws |
|
---|
string
getEncryptionPublicKey(): string
Throws |
|
---|
string
Return encryption key string
getEncryptionSecretBoxKey(): string
Throws |
|
---|
string
getEncryptionSecretKey(): string
Throws |
|
---|
string
Return encryption key string
init()
bLibraryExists :
sEncryptionNonce :
sEncryptionSecretBoxKey :