Ejemplos PHP

Ejemplos mcrypt

1.mcrypt_cbc
2.mcrypt_cfb
3.mcrypt_create_iv
4.mcrypt_decrypt
5.mcrypt_ecb
6.mcrypt_enc_get_algorithms_name
7.mcrypt_enc_get_block_size
8.mcrypt_enc_get_iv_size
9.mcrypt_enc_get_key_size
10.mcrypt_enc_get_modes_name
11.mcrypt_enc_get_supported_key_sizes
12.mcrypt_enc_is_block_algorithm_mode
13.mcrypt_enc_is_block_algorithm
14.mcrypt_enc_is_block_mode
15.mcrypt_enc_self_test
16.mcrypt_encrypt
17.mcrypt_generic_deinit
18.mcrypt_generic_end
19.mcrypt_generic_init
20.mcrypt_generic
21.mcrypt_get_block_size
22.mcrypt_get_cipher_name
23.mcrypt_get_iv_size
24.mcrypt_get_key_size
25.mcrypt_list_algorithms
26.mcrypt_list_modes
27.mcrypt_module_close
28.mcrypt_module_get_algo_block_size
29.mcrypt_module_get_algo_key_size
30.mcrypt_module_get_supported_key_sizes
31.mcrypt_module_is_block_algorithm_mode
32.mcrypt_module_is_block_algorithm
33.mcrypt_module_is_block_mode
34.mcrypt_module_open y mcrypt_mdecrypt_generic
35.mcrypt_module_self_test
36.mcrypt_ofb

Ejemplos gnupg

1.gnupg_adddecryptkey
2.gnupg_addencryptkey
3.gnupg_addsignkey
4.gnupg_cleardecryptkeys
5.gnupg_clearencryptkeys
6.gnupg_clearsignkeys
7.gnupg_decrypt
8.gnupg_decryptverify
9.gnupg_encrypt
10.gnupg_encryptsign
11.gnupg_export
12.gnupg_geterror
13.gnupg_getprotocol
14.gnupg_import
15.gnupg_init
16.gnupg_keyinfo
17.gnupg_setarmor
18.gnupg_seterrormode
19.gnupg_setsignmode
20.gnupg_sign
21.gnupg_verify

Ejemplos OpenSSL

Trabajo con claves privadas/públicas

1.openssl_pkey_new, openssl_pkey_free y openssl_pkey_export
2.openssl_pkey_get_details
3.openssl_pkey_export_to_file
4.openssl_pkey_get_private
5.openssl_pkey_get_public

Administración de certificados digitales

6.openssl_csr_new, openssl_csr_export y openssl_csr_export_to_file
7.openssl_csr_get_subject y openssl_csr_get_public_key
8.openssl_csr_sign, openssl_x509_export, openssl_x509_export_to_file y openssl_x509_free
9.openssl_x509_read y openssl_x509_parse
10.openssl_x509_checkpurpose
11.openssl_x509_check_private_key
12.openssl_pkcs12_export y openssl_pkcs12_export_to_file
13.openssl_pkcs12_read

Cifrado y descifrado

14.openssl_public_encrypt y openssl_private_decrypt
15.openssl_pkcs7_encrypt y openssl_pkcs7_decrypt
16.openssl_seal
17.openssl_open
18.openssl_pkcs7_sign y openssl_pkcs7_verify
19.openssl_sign y openssl_verify

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License