- ScpHashB64 메서드 INI_FILE 파라미터 추가 - DamoManager/README 갱신

This commit is contained in:
Rinjae
2026-07-24 10:35:16 +09:00
parent 5db83e485d
commit a9d6567ed4
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -217,7 +217,7 @@ int rc = damo2.getReturnCode(); // 0: 성공, -1:
|---|---|---|---| |---|---|---|---|
| `String encrypt(String plain)` | `ScpEncB64(INI_FILE, "KEY1", plain, "UTF-8")` | `Base64.encode(plain.getBytes("UTF-8"))` | `plain` (원문) | | `String encrypt(String plain)` | `ScpEncB64(INI_FILE, "KEY1", plain, "UTF-8")` | `Base64.encode(plain.getBytes("UTF-8"))` | `plain` (원문) |
| `String decrypt(String b64)` | `ScpDecB64(INI_FILE, "KEY1", b64, "UTF-8")` | `new String(Base64.decode(b64), "UTF-8")` | 입력 그대로 | | `String decrypt(String b64)` | `ScpDecB64(INI_FILE, "KEY1", b64, "UTF-8")` | `new String(Base64.decode(b64), "UTF-8")` | 입력 그대로 |
| `String hash(int type, String src)` | `ScpHashB64(type, src, "UTF-8")` | `MessageDigest(SHA-256/512).digest(src) → Base64` | `src` (원문) | | `String hash(int type, String src)` | `ScpHashB64(INI_FILE, type, src)` | `MessageDigest(SHA-256/512).digest(src) → Base64` | `src` (원문) |
해시 `type` 상수: 해시 `type` 상수:
@@ -446,7 +446,7 @@ public class DamoManager {
} }
String hashB64(int type, String src) { String hashB64(int type, String src) {
return agt.ScpHashB64(type, src, CHARSET); return agt.ScpHashB64(INI_FILE, type, src);
} }
} }
@@ -23,7 +23,7 @@ public class ScpDbAgent {
return null; return null;
} }
public String ScpHashB64(int type, String src, String charset) throws ScpDbAgentException { public String ScpHashB64(String iniFile, int type, String src) throws ScpDbAgentException {
return null; return null;
} }
} }