728x90
728x90
[SAP PO channel password 복호화]
SimpleQuery API를 통해 Channel password 조회한다. (encrypted data)
Directory objects: http(s)://<host>:<port>/dir/support/SimpleQuery
암호화된 데이타를 복호화 작업한다.
Convert Encrypted Data to Decrypted Data
public static void main(String[] args) throws Exception {
String encryptedData = "XXXXXXX~~~";
byte[] aByteArray = Base64.getDecoder().decode(encryptedData);
int len = aByteArray.length;
byte[] result = new byte[len - 1];
for (int i = 1; i < len; i++) {
result[(len - 1 - i)] = ((byte)(aByteArray[i] ^ 0x74));
}
String decryptedData = new String(result);
System.out.println(decryptedData);
}
728x90
반응형
'IT 이모저모' 카테고리의 다른 글
[SAP PO] SAP GUI에서 PO Proxy 조회 화면 설정 (0) | 2023.01.07 |
---|---|
[SAP PO] log level 설정 (0) | 2022.12.27 |
초간단 Website 만들기 (0) | 2022.12.24 |
[SAP PO] ESR별로 연관된 Channel 정보 조회 쿼리 (0) | 2022.12.19 |
[SAP PO] Define of SAP PO/PI Port (0) | 2022.12.16 |
댓글