aAlgoritmes EVP_ALG_LIST() cDecrypted EVP_DECRYPT(<cData>, <cKey> , [<cCipherMethod> , [<cDigestMethod>] , [<cInitVector>]) cEncrypted EVP_ENCRYPT(<cData>, <cKey> , [<cCipherMethod> , [<cDigestMethod>] , [<cInitVector>])
Category Crypto include description of functions for cryptography based on OpenSSL technology.
For using need linking clip-crypto library:
clip -e test.prg -lclip-crypto
EVP_ALG_LIST() --> aAlgoritmes
Returns list of algoritms, registered in used version of OpenSSL library.
Returns : | Returns array of crypt algoritmes. Possible values of crypt algoritmes: "desx","des","idea","rc2","bf","blowfish","cast","cast-cbc","rc5". Possible values of digest algoritmes: "md5","md4","sha","sha1","dss","dss1","mdc2","ripemd160" . |
See also : | EVP_ENCRYPT() EVP_DECRYPT() |
EVP_DECRYPT(<cData>, <cKey> , [<cCipherMethod> , [<cDigestMethod>] , [<cInitVector>]) --> cDecrypted
Decrypt string, encrypted by EVP_ENCRYPT(), using one of symmetric block algoritm and given key string.
<cData> | - string for decryption. |
<cKey> | - key for decryption. |
<cCipherMethod> | - decryption method. Default value 'des-ede3-cbc'. |
<cDigestMethod> | - the digest method. Default value 'md5'. |
<cInitVector> | - initial vector for decryption. Default value ''. |
Returns : | Decrypted string. |
See also : | EVP_ENCRYPT() EVP_ALG_LIST() |
EVP_ENCRYPT(<cData>, <cKey> , [<cCipherMethod> , [<cDigestMethod>] , [<cInitVector>]) --> cEncrypted
Encrypt string using one of symmetric block algoritm and given key string.
<cData> | - string for encryption. |
<cKey> | - key for encryption. |
<cCipherMethod> | - encryption method. Default value 'des-ede3-cbc'. |
<cDigestMethod> | - the digest method. Default value 'md5'. |
<cInitVector> | - initial vector for encryption. Default value ''. |
Returns : | Encrypted string. |
See also : | EVP_DECRYPT() EVP_ALG_LIST() |