( ! ) 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
#TimeMemoryFunctionLocation
10.0001402904{main}( )...\index.php:0
20.0001403184require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.22619232488wp( )...\wp-blog-header.php:16
40.22619232512WP->main( )...\functions.php:1334
50.22619232512WP->parse_request( )...\class-wp.php:780
60.22669259200do_action_ref_array( )...\class-wp.php:399
70.22669259200WP_Hook->do_action( )...\plugin.php:565
80.22669259200WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.22669260216rest_api_loaded( )...\class-wp-hook.php:308
100.22669260248rest_get_server( )...\rest-api.php:403
110.22669263184do_action( )...\rest-api.php:577
120.22669263560WP_Hook->do_action( )...\plugin.php:517
130.22669263560WP_Hook->apply_filters( )...\class-wp-hook.php:332
140.22759302760Jetpack_Core_Json_Api_Endpoints::register_endpoints( )...\class-wp-hook.php:308
150.22779310752Jetpack::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
#TimeMemoryFunctionLocation
10.0001402904{main}( )...\index.php:0
20.0001403184require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.22619232488wp( )...\wp-blog-header.php:16
40.22619232512WP->main( )...\functions.php:1334
50.22619232512WP->parse_request( )...\class-wp.php:780
60.22669259200do_action_ref_array( )...\class-wp.php:399
70.22669259200WP_Hook->do_action( )...\plugin.php:565
80.22669259200WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.22669260216rest_api_loaded( )...\class-wp-hook.php:308
100.285211051088WP_REST_Server->serve_request( )...\rest-api.php:410
110.285311050744WP_REST_Server->send_header( )...\class-wp-rest-server.php:310
120.285311051072header ( )...\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
#TimeMemoryFunctionLocation
10.0001402904{main}( )...\index.php:0
20.0001403184require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.22619232488wp( )...\wp-blog-header.php:16
40.22619232512WP->main( )...\functions.php:1334
50.22619232512WP->parse_request( )...\class-wp.php:780
60.22669259200do_action_ref_array( )...\class-wp.php:399
70.22669259200WP_Hook->do_action( )...\plugin.php:565
80.22669259200WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.22669260216rest_api_loaded( )...\class-wp-hook.php:308
100.285211051088WP_REST_Server->serve_request( )...\rest-api.php:410
110.286311050688WP_REST_Server->send_header( )...\class-wp-rest-server.php:311
120.286311051008header ( )...\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
#TimeMemoryFunctionLocation
10.0001402904{main}( )...\index.php:0
20.0001403184require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.22619232488wp( )...\wp-blog-header.php:16
40.22619232512WP->main( )...\functions.php:1334
50.22619232512WP->parse_request( )...\class-wp.php:780
60.22669259200do_action_ref_array( )...\class-wp.php:399
70.22669259200WP_Hook->do_action( )...\plugin.php:565
80.22669259200WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.22669260216rest_api_loaded( )...\class-wp-hook.php:308
100.285211051088WP_REST_Server->serve_request( )...\rest-api.php:410
110.287511050880WP_REST_Server->send_header( )...\class-wp-rest-server.php:315
120.287511051248header ( )...\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
#TimeMemoryFunctionLocation
10.0001402904{main}( )...\index.php:0
20.0001403184require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.22619232488wp( )...\wp-blog-header.php:16
40.22619232512WP->main( )...\functions.php:1334
50.22619232512WP->parse_request( )...\class-wp.php:780
60.22669259200do_action_ref_array( )...\class-wp.php:399
70.22669259200WP_Hook->do_action( )...\plugin.php:565
80.22669259200WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.22669260216rest_api_loaded( )...\class-wp-hook.php:308
100.285211051088WP_REST_Server->serve_request( )...\rest-api.php:410
110.288411050768WP_REST_Server->send_header( )...\class-wp-rest-server.php:323
120.288411051088header ( )...\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
#TimeMemoryFunctionLocation
10.0001402904{main}( )...\index.php:0
20.0001403184require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.22619232488wp( )...\wp-blog-header.php:16
40.22619232512WP->main( )...\functions.php:1334
50.22619232512WP->parse_request( )...\class-wp.php:780
60.22669259200do_action_ref_array( )...\class-wp.php:399
70.22669259200WP_Hook->do_action( )...\plugin.php:565
80.22669259200WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.22669260216rest_api_loaded( )...\class-wp-hook.php:308
100.285211051088WP_REST_Server->serve_request( )...\rest-api.php:410
110.289111050832WP_REST_Server->send_header( )...\class-wp-rest-server.php:335
120.289111051200header ( )...\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
#TimeMemoryFunctionLocation
10.0001402904{main}( )...\index.php:0
20.0001403184require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.22619232488wp( )...\wp-blog-header.php:16
40.22619232512WP->main( )...\functions.php:1334
50.22619232512WP->parse_request( )...\class-wp.php:780
60.22669259200do_action_ref_array( )...\class-wp.php:399
70.22669259200WP_Hook->do_action( )...\plugin.php:565
80.22669259200WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.22669260216rest_api_loaded( )...\class-wp-hook.php:308
100.285211051088WP_REST_Server->serve_request( )...\rest-api.php:410
110.289811050880WP_REST_Server->send_header( )...\class-wp-rest-server.php:359
120.289911051248header ( )...\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
#TimeMemoryFunctionLocation
10.0001402904{main}( )...\index.php:0
20.0001403184require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.22619232488wp( )...\wp-blog-header.php:16
40.22619232512WP->main( )...\functions.php:1334
50.22619232512WP->parse_request( )...\class-wp.php:780
60.22669259200do_action_ref_array( )...\class-wp.php:399
70.22669259200WP_Hook->do_action( )...\plugin.php:565
80.22669259200WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.22669260216rest_api_loaded( )...\class-wp-hook.php:308
100.285211051088WP_REST_Server->serve_request( )...\rest-api.php:410
110.333411254576WP_REST_Server->send_headers( )...\class-wp-rest-server.php:475
120.333411254576WP_REST_Server->send_header( )...\class-wp-rest-server.php:1774
130.333411255120header ( )...\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
#TimeMemoryFunctionLocation
10.0001402904{main}( )...\index.php:0
20.0001403184require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.22619232488wp( )...\wp-blog-header.php:16
40.22619232512WP->main( )...\functions.php:1334
50.22619232512WP->parse_request( )...\class-wp.php:780
60.22669259200do_action_ref_array( )...\class-wp.php:399
70.22669259200WP_Hook->do_action( )...\plugin.php:565
80.22669259200WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.22669260216rest_api_loaded( )...\class-wp-hook.php:308
100.285211051088WP_REST_Server->serve_request( )...\rest-api.php:410
110.333411254576WP_REST_Server->send_headers( )...\class-wp-rest-server.php:475
120.334411254576WP_REST_Server->send_header( )...\class-wp-rest-server.php:1774
130.334411254896header ( )...\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":"\n

import\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}]}}