( ! ) Warning: Declaration of Jetpack_IXR_Client::query() should be compatible with IXR_Client::query(...$args) in C:\wamp64_2\www\docbase\wp-content\plugins\jetpack\class.jetpack-ixr-client.php on line 0 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0001 | 402904 | {main}( ) | ...\index.php:0 |
2 | 0.0001 | 403184 | require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' ) | ...\index.php:17 |
3 | 0.2261 | 9232488 | wp( ) | ...\wp-blog-header.php:16 |
4 | 0.2261 | 9232512 | WP->main( ) | ...\functions.php:1334 |
5 | 0.2261 | 9232512 | WP->parse_request( ) | ...\class-wp.php:780 |
6 | 0.2266 | 9259200 | do_action_ref_array( ) | ...\class-wp.php:399 |
7 | 0.2266 | 9259200 | WP_Hook->do_action( ) | ...\plugin.php:565 |
8 | 0.2266 | 9259200 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:332 |
9 | 0.2266 | 9260216 | rest_api_loaded( ) | ...\class-wp-hook.php:308 |
10 | 0.2266 | 9260248 | rest_get_server( ) | ...\rest-api.php:403 |
11 | 0.2266 | 9263184 | do_action( ) | ...\rest-api.php:577 |
12 | 0.2266 | 9263560 | WP_Hook->do_action( ) | ...\plugin.php:517 |
13 | 0.2266 | 9263560 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:332 |
14 | 0.2275 | 9302760 | Jetpack_Core_Json_Api_Endpoints::register_endpoints( ) | ...\class-wp-hook.php:308 |
15 | 0.2277 | 9310752 | Jetpack::load_xml_rpc_client( ) | ...\class.core-rest-api-endpoints.php:64 |
( ! ) Warning: Cannot modify header information - headers already sent by (output started at C:\wamp64_2\www\docbase\wp-content\plugins\jetpack\class.jetpack-ixr-client.php:0) in C:\wamp64_2\www\docbase\wp-includes\rest-api\class-wp-rest-server.php on line 1762 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0001 | 402904 | {main}( ) | ...\index.php:0 |
2 | 0.0001 | 403184 | require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' ) | ...\index.php:17 |
3 | 0.2261 | 9232488 | wp( ) | ...\wp-blog-header.php:16 |
4 | 0.2261 | 9232512 | WP->main( ) | ...\functions.php:1334 |
5 | 0.2261 | 9232512 | WP->parse_request( ) | ...\class-wp.php:780 |
6 | 0.2266 | 9259200 | do_action_ref_array( ) | ...\class-wp.php:399 |
7 | 0.2266 | 9259200 | WP_Hook->do_action( ) | ...\plugin.php:565 |
8 | 0.2266 | 9259200 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:332 |
9 | 0.2266 | 9260216 | rest_api_loaded( ) | ...\class-wp-hook.php:308 |
10 | 0.2852 | 11051088 | WP_REST_Server->serve_request( ) | ...\rest-api.php:410 |
11 | 0.2853 | 11050744 | WP_REST_Server->send_header( ) | ...\class-wp-rest-server.php:310 |
12 | 0.2853 | 11051072 | header
( ) | ...\class-wp-rest-server.php:1762 |
( ! ) Warning: Cannot modify header information - headers already sent by (output started at C:\wamp64_2\www\docbase\wp-content\plugins\jetpack\class.jetpack-ixr-client.php:0) in C:\wamp64_2\www\docbase\wp-includes\rest-api\class-wp-rest-server.php on line 1762 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0001 | 402904 | {main}( ) | ...\index.php:0 |
2 | 0.0001 | 403184 | require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' ) | ...\index.php:17 |
3 | 0.2261 | 9232488 | wp( ) | ...\wp-blog-header.php:16 |
4 | 0.2261 | 9232512 | WP->main( ) | ...\functions.php:1334 |
5 | 0.2261 | 9232512 | WP->parse_request( ) | ...\class-wp.php:780 |
6 | 0.2266 | 9259200 | do_action_ref_array( ) | ...\class-wp.php:399 |
7 | 0.2266 | 9259200 | WP_Hook->do_action( ) | ...\plugin.php:565 |
8 | 0.2266 | 9259200 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:332 |
9 | 0.2266 | 9260216 | rest_api_loaded( ) | ...\class-wp-hook.php:308 |
10 | 0.2852 | 11051088 | WP_REST_Server->serve_request( ) | ...\rest-api.php:410 |
11 | 0.2863 | 11050688 | WP_REST_Server->send_header( ) | ...\class-wp-rest-server.php:311 |
12 | 0.2863 | 11051008 | header
( ) | ...\class-wp-rest-server.php:1762 |
( ! ) Warning: Cannot modify header information - headers already sent by (output started at C:\wamp64_2\www\docbase\wp-content\plugins\jetpack\class.jetpack-ixr-client.php:0) in C:\wamp64_2\www\docbase\wp-includes\rest-api\class-wp-rest-server.php on line 1762 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0001 | 402904 | {main}( ) | ...\index.php:0 |
2 | 0.0001 | 403184 | require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' ) | ...\index.php:17 |
3 | 0.2261 | 9232488 | wp( ) | ...\wp-blog-header.php:16 |
4 | 0.2261 | 9232512 | WP->main( ) | ...\functions.php:1334 |
5 | 0.2261 | 9232512 | WP->parse_request( ) | ...\class-wp.php:780 |
6 | 0.2266 | 9259200 | do_action_ref_array( ) | ...\class-wp.php:399 |
7 | 0.2266 | 9259200 | WP_Hook->do_action( ) | ...\plugin.php:565 |
8 | 0.2266 | 9259200 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:332 |
9 | 0.2266 | 9260216 | rest_api_loaded( ) | ...\class-wp-hook.php:308 |
10 | 0.2852 | 11051088 | WP_REST_Server->serve_request( ) | ...\rest-api.php:410 |
11 | 0.2875 | 11050880 | WP_REST_Server->send_header( ) | ...\class-wp-rest-server.php:315 |
12 | 0.2875 | 11051248 | header
( ) | ...\class-wp-rest-server.php:1762 |
( ! ) Warning: Cannot modify header information - headers already sent by (output started at C:\wamp64_2\www\docbase\wp-content\plugins\jetpack\class.jetpack-ixr-client.php:0) in C:\wamp64_2\www\docbase\wp-includes\rest-api\class-wp-rest-server.php on line 1762 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0001 | 402904 | {main}( ) | ...\index.php:0 |
2 | 0.0001 | 403184 | require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' ) | ...\index.php:17 |
3 | 0.2261 | 9232488 | wp( ) | ...\wp-blog-header.php:16 |
4 | 0.2261 | 9232512 | WP->main( ) | ...\functions.php:1334 |
5 | 0.2261 | 9232512 | WP->parse_request( ) | ...\class-wp.php:780 |
6 | 0.2266 | 9259200 | do_action_ref_array( ) | ...\class-wp.php:399 |
7 | 0.2266 | 9259200 | WP_Hook->do_action( ) | ...\plugin.php:565 |
8 | 0.2266 | 9259200 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:332 |
9 | 0.2266 | 9260216 | rest_api_loaded( ) | ...\class-wp-hook.php:308 |
10 | 0.2852 | 11051088 | WP_REST_Server->serve_request( ) | ...\rest-api.php:410 |
11 | 0.2884 | 11050768 | WP_REST_Server->send_header( ) | ...\class-wp-rest-server.php:323 |
12 | 0.2884 | 11051088 | header
( ) | ...\class-wp-rest-server.php:1762 |
( ! ) Warning: Cannot modify header information - headers already sent by (output started at C:\wamp64_2\www\docbase\wp-content\plugins\jetpack\class.jetpack-ixr-client.php:0) in C:\wamp64_2\www\docbase\wp-includes\rest-api\class-wp-rest-server.php on line 1762 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0001 | 402904 | {main}( ) | ...\index.php:0 |
2 | 0.0001 | 403184 | require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' ) | ...\index.php:17 |
3 | 0.2261 | 9232488 | wp( ) | ...\wp-blog-header.php:16 |
4 | 0.2261 | 9232512 | WP->main( ) | ...\functions.php:1334 |
5 | 0.2261 | 9232512 | WP->parse_request( ) | ...\class-wp.php:780 |
6 | 0.2266 | 9259200 | do_action_ref_array( ) | ...\class-wp.php:399 |
7 | 0.2266 | 9259200 | WP_Hook->do_action( ) | ...\plugin.php:565 |
8 | 0.2266 | 9259200 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:332 |
9 | 0.2266 | 9260216 | rest_api_loaded( ) | ...\class-wp-hook.php:308 |
10 | 0.2852 | 11051088 | WP_REST_Server->serve_request( ) | ...\rest-api.php:410 |
11 | 0.2891 | 11050832 | WP_REST_Server->send_header( ) | ...\class-wp-rest-server.php:335 |
12 | 0.2891 | 11051200 | header
( ) | ...\class-wp-rest-server.php:1762 |
( ! ) Warning: Cannot modify header information - headers already sent by (output started at C:\wamp64_2\www\docbase\wp-content\plugins\jetpack\class.jetpack-ixr-client.php:0) in C:\wamp64_2\www\docbase\wp-includes\rest-api\class-wp-rest-server.php on line 1762 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0001 | 402904 | {main}( ) | ...\index.php:0 |
2 | 0.0001 | 403184 | require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' ) | ...\index.php:17 |
3 | 0.2261 | 9232488 | wp( ) | ...\wp-blog-header.php:16 |
4 | 0.2261 | 9232512 | WP->main( ) | ...\functions.php:1334 |
5 | 0.2261 | 9232512 | WP->parse_request( ) | ...\class-wp.php:780 |
6 | 0.2266 | 9259200 | do_action_ref_array( ) | ...\class-wp.php:399 |
7 | 0.2266 | 9259200 | WP_Hook->do_action( ) | ...\plugin.php:565 |
8 | 0.2266 | 9259200 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:332 |
9 | 0.2266 | 9260216 | rest_api_loaded( ) | ...\class-wp-hook.php:308 |
10 | 0.2852 | 11051088 | WP_REST_Server->serve_request( ) | ...\rest-api.php:410 |
11 | 0.2898 | 11050880 | WP_REST_Server->send_header( ) | ...\class-wp-rest-server.php:359 |
12 | 0.2899 | 11051248 | header
( ) | ...\class-wp-rest-server.php:1762 |
( ! ) Warning: Cannot modify header information - headers already sent by (output started at C:\wamp64_2\www\docbase\wp-content\plugins\jetpack\class.jetpack-ixr-client.php:0) in C:\wamp64_2\www\docbase\wp-includes\rest-api\class-wp-rest-server.php on line 1762 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0001 | 402904 | {main}( ) | ...\index.php:0 |
2 | 0.0001 | 403184 | require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' ) | ...\index.php:17 |
3 | 0.2261 | 9232488 | wp( ) | ...\wp-blog-header.php:16 |
4 | 0.2261 | 9232512 | WP->main( ) | ...\functions.php:1334 |
5 | 0.2261 | 9232512 | WP->parse_request( ) | ...\class-wp.php:780 |
6 | 0.2266 | 9259200 | do_action_ref_array( ) | ...\class-wp.php:399 |
7 | 0.2266 | 9259200 | WP_Hook->do_action( ) | ...\plugin.php:565 |
8 | 0.2266 | 9259200 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:332 |
9 | 0.2266 | 9260216 | rest_api_loaded( ) | ...\class-wp-hook.php:308 |
10 | 0.2852 | 11051088 | WP_REST_Server->serve_request( ) | ...\rest-api.php:410 |
11 | 0.3334 | 11254576 | WP_REST_Server->send_headers( ) | ...\class-wp-rest-server.php:475 |
12 | 0.3334 | 11254576 | WP_REST_Server->send_header( ) | ...\class-wp-rest-server.php:1774 |
13 | 0.3334 | 11255120 | header
( ) | ...\class-wp-rest-server.php:1762 |
( ! ) Warning: Cannot modify header information - headers already sent by (output started at C:\wamp64_2\www\docbase\wp-content\plugins\jetpack\class.jetpack-ixr-client.php:0) in C:\wamp64_2\www\docbase\wp-includes\rest-api\class-wp-rest-server.php on line 1762 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0001 | 402904 | {main}( ) | ...\index.php:0 |
2 | 0.0001 | 403184 | require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' ) | ...\index.php:17 |
3 | 0.2261 | 9232488 | wp( ) | ...\wp-blog-header.php:16 |
4 | 0.2261 | 9232512 | WP->main( ) | ...\functions.php:1334 |
5 | 0.2261 | 9232512 | WP->parse_request( ) | ...\class-wp.php:780 |
6 | 0.2266 | 9259200 | do_action_ref_array( ) | ...\class-wp.php:399 |
7 | 0.2266 | 9259200 | WP_Hook->do_action( ) | ...\plugin.php:565 |
8 | 0.2266 | 9259200 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:332 |
9 | 0.2266 | 9260216 | rest_api_loaded( ) | ...\class-wp-hook.php:308 |
10 | 0.2852 | 11051088 | WP_REST_Server->serve_request( ) | ...\rest-api.php:410 |
11 | 0.3334 | 11254576 | WP_REST_Server->send_headers( ) | ...\class-wp-rest-server.php:475 |
12 | 0.3344 | 11254576 | WP_REST_Server->send_header( ) | ...\class-wp-rest-server.php:1774 |
13 | 0.3344 | 11254896 | header
( ) | ...\class-wp-rest-server.php:1762 |
{"id":4225,"date":"2021-11-30T12:38:44","date_gmt":"2021-11-30T12:38:44","guid":{"rendered":"http:\/\/sandbox.interswitchng.com\/docbase\/docs\/card-management\/java-aes-example\/"},"modified":"2021-11-30T12:40:56","modified_gmt":"2021-11-30T12:40:56","slug":"java-aes-example","status":"publish","type":"docs","link":"https:\/\/sandbox.interswitchng.com\/docbase\/docs\/card-management\/java-aes-example\/","title":{"rendered":"JAVA AES Example"},"content":{"rendered":"\nimport\u00a0javax.crypto.Cipher;
import\u00a0javax.crypto.KeyGenerator;
import\u00a0javax.crypto.SecretKey;
import\u00a0javax.crypto.SecretKeyFactory;
import\u00a0javax.crypto.spec.IvParameterSpec;
import\u00a0javax.crypto.spec.PBEKeySpec;
import\u00a0javax.crypto.spec.SecretKeySpec;
import\u00a0javax.validation.Validation;
import\u00a0javax.validation.Validator;
import\u00a0java.security.Key;
import\u00a0java.security.NoSuchAlgorithmException;
import\u00a0java.security.SecureRandom;
import\u00a0java.security.spec.KeySpec;
import\u00a0java.util.Base64;
import\u00a0static\u00a0java.nio.charset.StandardCharsets.UTF_8;<\/code><\/p>\n\n\n\n
public\u00a0class\u00a0EncryptionService\u00a0{
\u00a0\u00a0\u00a0\u00a0private\u00a0String\u00a0encrypt(String\u00a0data,\u00a0String\u00a0iv,\u00a0String\u00a0key)\u00a0{
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0try\u00a0{
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Cipher\u00a0_Cipher\u00a0=\u00a0Cipher.getInstance(\"AES\/CBC\/PKCS5PADDING\");
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0byte[]\u00a0_iv\u00a0=\u00a0iv.getBytes();
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0IvParameterSpec\u00a0ivspec\u00a0=\u00a0new\u00a0IvParameterSpec(_iv);
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Key\u00a0SecretKey\u00a0=\u00a0new\u00a0SecretKeySpec(key.getBytes(),
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"AES\");
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0_Cipher.init(Cipher.ENCRYPT_MODE,\u00a0SecretKey,\u00a0ivspec);
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return\u00a0org.apache.commons.codec.binary.Base64.encodeBase64String(_Cipher.doFinal(data.getBytes()));
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}\u00a0catch\u00a0(Exception\u00a0e)\u00a0{
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0System.out.println(\"Error\u00a0while\u00a0attempting\u00a0to\u00a0encrypt\u00a0using\u00a0iv\u00a0and\u00a0key\");
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}
\u00a0\u00a0\u00a0\u00a0}
\u00a0\u00a0\u00a0\u00a0private\u00a0String\u00a0decrypt(String\u00a0data,\u00a0String\u00a0iv,\u00a0String\u00a0key)\u00a0{
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0try
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Cipher\u00a0_Cipher\u00a0=\u00a0Cipher.getInstance(\"AES\/CBC\/PKCS5PADDING\");
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0byte[]\u00a0_iv\u00a0=\u00a0iv.getBytes();
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0IvParameterSpec\u00a0ivspec\u00a0=\u00a0new\u00a0IvParameterSpec(_iv);
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Key\u00a0SecretKey\u00a0=\u00a0new\u00a0SecretKeySpec(key.getBytes(),
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"AES\");
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0_Cipher.init(Cipher.DECRYPT_MODE,\u00a0SecretKey,\u00a0ivspec);
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return\u00a0new\u00a0String(_Cipher.doFinal(org.apache.commons.codec.binary.Base64.decodeBase64(data)));
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}\u00a0catch\u00a0(Exception\u00a0e)\u00a0{
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0System.out.println(\"Error\u00a0while\u00a0attempting\u00a0to\u00a0decrypt\u00a0using\u00a0iv\u00a0and\u00a0key\");
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}
\u00a0\u00a0\u00a0\u00a0}
}<\/code><\/p>\n","protected":false},"author":4618,"featured_media":0,"parent":4074,"menu_order":5,"comment_status":"open","ping_status":"closed","template":"","meta":{"spay_email":""},"doc_tag":[],"_links":{"self":[{"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/4225"}],"collection":[{"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/users\/4618"}],"replies":[{"embeddable":true,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/comments?post=4225"}],"version-history":[{"count":3,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/4225\/revisions"}],"predecessor-version":[{"id":4229,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/4225\/revisions\/4229"}],"up":[{"embeddable":true,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/4074"}],"prev":[{"title":"C# AES Example","link":"https:\/\/sandbox.interswitchng.com\/docbase\/docs\/card-management\/c-aes-example\/","href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/4222"}],"wp:attachment":[{"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/media?parent=4225"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/doc_tag?post=4225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}